Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/pro-categories-widget/pro-categories-widget.php+118
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼61.54ms] Passed 4 tests
A check of server-side resources used by Pro Categories Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.52 ▼37.88 |
Dashboard /wp-admin | 2.05 ▼1.30 | 6.56 ▼59.29 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.78 ▼44.58 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 4.66 ▼104.41 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.66 ▼31.83 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_pro_categories_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Pro Categories Widget: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.39 ▲0.11 | 1.82 ▲0.09 | 43.24 ▲1.42 |
Dashboard /wp-admin | 2,198 ▲18 | 5.63 ▼0.07 | 92.91 ▲4.11 | 42.02 ▼0.36 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▲0.05 | 35.82 ▼8.95 | 37.85 ▼0.95 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.30 ▼4.92 | 590.10 ▼90.53 | 72.67 ▲12.69 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.24 ▲0.04 | 98.96 ▼5.40 | 44.16 ▼2.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/pro-categories-widget/pro-categories-widget.php+118
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_pro_categories_widget
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pro-categories-widget/index.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pro-categories-widget/pro-categories-widget.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: exclude category, pro categories widget, exclude categories, advanced categories widget, category...
pro-categories-widget/pro-categories-widget.php Passed 13 tests
The entry point to "Pro Categories Widget" version 1.3 is a PHP file that has certain tags in its header comment area
76 characters long description:
Pro Categories Widget plugin.You have choice to specific categories exclude.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected93 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 23 | 19 | 93 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 5.44KB | 5.37KB | ▼ 1.36% |