94% advanced-categories-widget

Code Review | Advanced Categories Widget

WordPress plugin Advanced Categories Widget scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-categori...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.5.4
  • WordPress version: 5.8.1
  • First release: May 2, 2016
  • Latest release: Aug 11, 2016
  • Number of updates: 5
  • Update frequency: every 21.4 days
  • Top authors: dbmartin (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active / 14,524 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼140.82ms] Passed 4 tests

An overview of server-side resources used by Advanced Categories Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1433.05 ▲11.39
Dashboard /wp-admin3.08 ▲0.0342.35 ▼0.24
Posts /wp-admin/edit.php3.17 ▲0.0641.22 ▼0.98
Add New Post /wp-admin/post-new.php5.45 ▲0.0291.43 ▼557.16
Media Library /wp-admin/upload.php3.02 ▲0.0135.49 ▼4.88

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Categories Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,707 ▲11116.25 ▲0.798.94 ▼1.1950.79 ▲0.15
Dashboard /wp-admin2,974 ▲405.89 ▼0.04130.95 ▼13.11112.73 ▲7.89
Posts /wp-admin/edit.php2,743 ▲42.68 ▼0.0081.14 ▲16.4784.99 ▼0.63
Add New Post /wp-admin/post-new.php1,502 ▼17018.87 ▼0.19376.10 ▲1.75108.33 ▼2.12
Media Library /wp-admin/upload.php1,814 ▲104.99 ▼0.02146.37 ▼9.34120.67 ▼8.17

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 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Advanced_Categories_Widget_Fields' not found in wp-content/plugins/advanced-categories-widget/inc/widget-form.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Screenshot #6 (Example list in sidebar.) image required
  • Screenshots: A description for screenshot #5 is required in advanced-categories-widget/assets to your readme.txt
Please take inspiration from this readme.txt

advanced-categories-widget/advanced-categories-widget.php Passed 13 tests

The entry point to "Advanced Categories Widget" version 1.2 is a PHP file that has certain tags in its header comment area
47 characters long description:
A highly customizable recent categories widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,601 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity23.40
▷ Minimum class complexity14.00
▷ Maximum class complexity39.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
▷ Static methods4670.77%
▷ Public methods6498.46%
▷ Protected methods00.00%
▷ Private methods11.54%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin