68% vadi-faq

Code Review | Free Responsive Accordian FAQ and Question Answer

WordPress plugin Free Responsive Accordian FAQ and Question Answer scored68%from 54 tests.

About plugin

  • Plugin page: vadi-faq
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Aug 9, 2016
  • Latest release: Aug 29, 2016
  • Number of updates: 7
  • Update frequency: every 3.0 days
  • Top authors: waheed146 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,144 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.85MB] [CPU: ▼33.67ms] Passed 4 tests

Analyzing server-side resources used by Free Responsive Accordian FAQ and Question Answer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1239.30 ▼1.49
Dashboard /wp-admin3.09 ▼0.2125.51 ▼22.57
Posts /wp-admin/edit.php3.09 ▼0.2725.68 ▼22.45
Add New Post /wp-admin/post-new.php3.09 ▼2.8024.19 ▼77.62
Media Library /wp-admin/upload.php3.09 ▼0.1423.83 ▼12.04
Add New /wp-admin/post-new.php?post_type=vadi_faq3.0923.31
FAQ Category /wp-admin/edit-tags.php?taxonomy=vadi_faq_cat&post_type=vadi_faq3.0924.42
FAQ ShortCode /wp-admin/edit.php?post_type=vadi_faq&page=vadi_faq_mnenu_shortcode3.0922.63
All FAQ /wp-admin/edit.php?post_type=vadi_faq3.0926.54

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Free Responsive Accordian FAQ and Question Answer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲21813.60 ▼0.788.18 ▲6.2635.94 ▼13.18
Dashboard /wp-admin2,244 ▲615.89 ▲0.9497.03 ▼10.1840.02 ▼4.58
Posts /wp-admin/edit.php2,130 ▲412.00 ▼0.0539.27 ▼1.2741.60 ▲6.51
Add New Post /wp-admin/post-new.php1,568 ▲3223.34 ▲0.20602.11 ▲7.8047.12 ▼2.07
Media Library /wp-admin/upload.php1,426 ▲384.21 ▲0.0496.65 ▼2.8142.16 ▼0.84
Add New /wp-admin/post-new.php?post_type=vadi_faq2,3817.58173.6762.96
FAQ Category /wp-admin/edit-tags.php?taxonomy=vadi_faq_cat&post_type=vadi_faq1,2832.1429.1628.01
FAQ ShortCode /wp-admin/edit.php?post_type=vadi_faq&page=vadi_faq_mnenu_shortcode1,0112.0127.2534.50
All FAQ /wp-admin/edit.php?post_type=vadi_faq1,1191.9329.5228.99

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/vadi-faq/vadi-faq.php+120
    Use of undefined constant vadi_faq_register_page_callback - assumed 'vadi_faq_register_page_callback' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=vadi_faq
    • > Warning in wp-content/plugins/vadi-faq/vadi-faq.php+120
    Use of undefined constant vadi_faq_register_page_callback - assumed 'vadi_faq_register_page_callback' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/post-new.php?post_type=vadi_faq
    • > Notice in wp-content/plugins/vadi-faq/columns.php+67
    Undefined index: post_type
    • > GET request to /wp-admin/post-new.php?post_type=vadi_faq
    • > Notice in wp-content/plugins/vadi-faq/columns.php+82
    Undefined variable: my_fieldvalue
    • > GET request to /wp-admin/edit-tags.php?taxonomy=vadi_faq_cat&post_type=vadi_faq
    • > Notice in wp-content/plugins/vadi-faq/columns.php+47
    Undefined variable: post_id

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vadi-faq/columns.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/vadi-faq/shortcode.php:197
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vadi-faq/meta.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/vadi-faq/shortcodepage.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 20 tag instead of maximum 10
  • Donate link: Invalid URI ("a_r_waheed@yahoo.com")
The official readme.txt is a good inspiration

vadi-faq/vadi-faq.php Passed 13 tests

The main PHP file in "Free Responsive Accordian FAQ and Question Answer" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
118 characters long description:
A simplest and easiest way to add responsive accordion FAQ and question answer to your faq page or post with shortcode

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected809 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP69835536
JavaScript1683223
CSS129450

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
designs/4.png4.82KB3.67KB▼ 23.95%
images/down.png0.34KB0.48KB0.00%
images/down-white.png2.98KB0.48KB▼ 83.85%
images/plus.png0.96KB0.12KB▼ 87.18%
designs/1.png3.65KB2.64KB▼ 27.69%