Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 33.05 ▲11.39 |
Dashboard /wp-admin | 3.08 ▲0.03 | 42.35 ▼0.24 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 41.22 ▼0.98 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 91.43 ▼557.16 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,707 ▲111 | 16.25 ▲0.79 | 8.94 ▼1.19 | 50.79 ▲0.15 |
Dashboard /wp-admin | 2,974 ▲40 | 5.89 ▼0.04 | 130.95 ▼13.11 | 112.73 ▲7.89 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.68 ▼0.00 | 81.14 ▲16.47 | 84.99 ▼0.63 |
Add New Post /wp-admin/post-new.php | 1,502 ▼170 | 18.87 ▼0.19 | 376.10 ▲1.75 | 108.33 ▼2.12 |
Media Library /wp-admin/upload.php | 1,814 ▲10 | 4.99 ▼0.02 | 146.37 ▼9.34 | 120.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
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 501 | 983 | 1,224 |
CSS | 2 | 43 | 1 | 225 |
JavaScript | 2 | 51 | 62 | 106 |
Markdown | 1 | 30 | 0 | 46 |
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 code | 0.21 |
Average class complexity | 23.40 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 46 | 70.77% |
▷ Public methods | 64 | 98.46% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.54% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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