87% accordion-box

Code Review | Accordion & FAQs

WordPress plugin Accordion & FAQs scored 87% from 54 tests.

About plugin

  • Plugin page: accordion-box
  • Plugin version: 2.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 5.9.2
  • First release: Nov 19, 2020
  • Latest release: Aug 18, 2021
  • Number of updates: 46
  • Update frequency: every 5.9 days
  • Top authors: codelizarplugs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 818 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼289.66ms] 75% from 4 tests

A check of server-side resources used by Accordion & FAQs
It is recommended to improve the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 738.50ms on /wp-admin/admin.php?page=cldzr_more_freeplugs)
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0357.36 ▲6.95
Dashboard /wp-admin3.58 ▲0.1735.15 ▲1.57
Posts /wp-admin/edit.php3.81 ▲0.1638.49 ▲0.40
Add New Post /wp-admin/post-new.php7.05 ▲0.0892.22 ▼1,164.52
Media Library /wp-admin/upload.php3.46 ▲0.1626.70 ▲3.93
All Accordion Box /wp-admin/admin.php?page=cdlzr_acc_box3.4323.05
Upgrade To Pro /wp-admin/admin.php?page=accbox_upgpro3.4423.39
Free vs Pro /wp-admin/admin.php?page=cldzr_freediffpro3.4524.41
Add Accordion /wp-admin/post-new.php?post_type=cdlzr_accrodion_box3.7939.52
More Free Plugins /wp-admin/admin.php?page=cldzr_more_freeplugs3.52738.50

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 68 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Accordion & FAQs
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,845 ▲9115.29 ▼0.427.07 ▲1.183.69 ▲0.98
Dashboard /wp-admin2,944 ▲866.25 ▲0.03117.21 ▼17.08172.29 ▲7.81
Posts /wp-admin/edit.php2,750 ▲563.24 ▲0.0064.92 ▲1.73145.61 ▲0.41
Add New Post /wp-admin/post-new.php1,762 ▲10123.12 ▲5.88428.40 ▲21.78162.90 ▲0.68
Media Library /wp-admin/upload.php1,768 ▲705.55 ▲0.04129.28 ▼17.71215.89 ▲24.42
All Accordion Box /wp-admin/admin.php?page=cdlzr_acc_box2,1363.9173.03133.72
Upgrade To Pro /wp-admin/admin.php?page=accbox_upgpro1,2362.3957.35163.67
Free vs Pro /wp-admin/admin.php?page=cldzr_freediffpro1,3332.3857.43167.53
Add Accordion /wp-admin/post-new.php?post_type=cdlzr_accrodion_box3,3328.28179.50370.37
More Free Plugins /wp-admin/admin.php?page=cldzr_more_freeplugs1,8712.3859.59171.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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 fix the following
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/accordion-box/admin/ourfreeplugs.php:41
    • > PHP Warning
      include(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/accordion-box/admin/ourfreeplugs.php on line 30
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/accordion-box/admin/ourfreeplugs.php on line 30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/accordion-box/admin/freediffpro.php:18
    • > PHP Warning
      include(): Failed opening 'ABSPATHwp-admin/includes/plugin-install.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/accordion-box/admin/ourfreeplugs.php on line 30

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/post-new.php?post_type=cdlzr_accrodion_box
    • > Network (severe)
    wp-content/plugins/accordion-box/admin/assets/images/freeone.png - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in accordion-box/assets to your readme.txt
  • Tags: Please delete some tags, you are using 32 tag instead of maximum 10
The official readme.txt might help

accordion-box/accordion-box.php 85% from 13 tests

The main PHP file in "Accordion & FAQs" ver. 2.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 300 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected13,991 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity7.12
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
▷ Static methods2672.22%
▷ Public methods3494.44%
▷ Protected methods00.00%
▷ Private methods25.56%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 0.64MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/freeone.PNG99.91KB31.09KB▼ 68.88%
public/assets/images/icon-plus.png0.34KB0.17KB▼ 49.71%
public/assets/images/arrow.png3.18KB0.53KB▼ 83.44%
admin/assets/images/style5.PNG65.30KB28.73KB▼ 56.00%