84% collapsible-categories-in-the-dashboard

Code Review | Collapsible Categories in the Dashboard

WordPress plugin Collapsible Categories in the Dashboard scored84%from 54 tests.

About plugin

  • Plugin page: collapsible-categ...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.2.2
  • WordPress version: 6.3.1
  • First release: Nov 19, 2017
  • Latest release: Aug 15, 2019
  • Number of updates: 5
  • Update frequency: every 126.8 days
  • Top authors: newvibe (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

500+ active /3,395 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

A check of server-side resources used by Collapsible Categories in the Dashboard
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.91 ▼0.70
Dashboard /wp-admin3.31 ▼0.0447.79 ▼17.45
Posts /wp-admin/edit.php3.36 ▲0.0048.70 ▼5.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.89 ▼7.46
Media Library /wp-admin/upload.php3.23 ▲0.0036.60 ▼1.55

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Collapsible Categories in the Dashboard
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.171.68 ▼0.1039.33 ▼0.70
Dashboard /wp-admin2,203 ▲155.79 ▲0.90101.67 ▼7.8542.63 ▼3.40
Posts /wp-admin/edit.php2,095 ▲62.01 ▼0.0239.16 ▼0.8733.72 ▼0.97
Add New Post /wp-admin/post-new.php1,529 ▲318.20 ▼4.69641.76 ▲37.1764.15 ▲13.84
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0396.41 ▼6.3641.84 ▼0.47

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/collapsible-categories-in-the-dashboard/collapsible-categories-in-the-dashboard.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: hierarchy, admin, ui, collapsible categories

collapsible-categories-in-the-dashboard/collapsible-categories-in-the-dashboard.php Passed 13 tests

The entry point to "Collapsible Categories in the Dashboard" version 1.1 is a PHP file that has certain tags in its header comment area
117 characters long description:
Collapses sub categories into hidden submenus that can be expanded and collapsed. Keeps selected categories visible.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected62 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121062

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin