89% chameleon-pure-css-accordion

Code Review | Chameleon Pure CSS Accordion

WordPress plugin Chameleon Pure CSS Accordion scored89%from 54 tests.

About plugin

  • Plugin page: chameleon-pure-cs...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 22, 2017
  • Latest release: Dec 26, 2017
  • Number of updates: 27
  • Update frequency: every 0.3 days
  • Top authors: alterbid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /830 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.82ms] Passed 4 tests

An overview of server-side resources used by Chameleon Pure CSS Accordion
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.26 ▲0.98
Dashboard /wp-admin3.31 ▼0.0455.86 ▼11.97
Posts /wp-admin/edit.php3.36 ▲0.0054.34 ▲3.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.87 ▼13.11
Media Library /wp-admin/upload.php3.23 ▲0.0037.45 ▲0.84

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Chameleon Pure CSS Accordion
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.22 ▼1.154.66 ▲2.9242.98 ▼1.05
Dashboard /wp-admin2,221 ▲155.79 ▼0.12100.31 ▼2.6139.55 ▼3.56
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0039.54 ▼0.9935.68 ▼1.92
Add New Post /wp-admin/post-new.php1,545 ▼023.38 ▲0.15659.39 ▲7.4653.70 ▲1.50
Media Library /wp-admin/upload.php1,397 ▼34.21 ▲0.0199.18 ▼4.9547.57 ▼0.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: A description for screenshot #17 is missing in chameleon-pure-css-accordion/assets to your readme.txt
  • Tags: Too many tags (29 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

chameleon-pure-css-accordion/chameleon-pure-css-accordion.php Passed 13 tests

The entry point to "Chameleon Pure CSS Accordion" version 1.0 is a PHP file that has certain tags in its header comment area
89 characters long description:
Add any posts to the accordion by categories and tags / CSS only, without javascript code

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin611 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions11100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin