Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/category-feature/class-lib/CF_WidgetClass.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; Featured_Category_Widget has a deprecated constructor
Server metrics [RAM: ▼1.41MB] [CPU: ▼55.35ms] Passed 4 tests
Analyzing server-side resources used by Featured Category Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.58 ▼0.88 | 7.73 ▼37.59 |
Dashboard /wp-admin | 2.60 ▼0.74 | 10.14 ▼56.46 |
Posts /wp-admin/edit.php | 2.61 ▼0.75 | 9.35 ▼39.19 |
Add New Post /wp-admin/post-new.php | 2.60 ▼3.28 | 8.66 ▼88.15 |
Media Library /wp-admin/upload.php | 2.61 ▼0.62 | 11.75 ▼23.91 |
Featured Category /wp-admin/options-general.php?page=featured-category-settings | 2.61 | 8.35 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
cf_options |
widget_recent-posts |
widget_featured_category_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Featured Category Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 13.29 ▼1.06 | 4.67 ▲3.04 | 41.48 ▼3.68 |
Dashboard /wp-admin | 2,228 ▲43 | 5.83 ▲0.97 | 106.96 ▼8.84 | 76.22 ▲29.08 |
Posts /wp-admin/edit.php | 2,108 ▲22 | 2.00 ▼0.01 | 39.73 ▲2.24 | 36.21 ▼0.27 |
Add New Post /wp-admin/post-new.php | 1,526 ▲6 | 17.54 ▼5.94 | 735.30 ▲102.13 | 53.70 ▼21.86 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.23 ▼0.08 | 98.95 ▼4.08 | 72.56 ▲26.45 |
Featured Category /wp-admin/options-general.php?page=featured-category-settings | 1,034 | 4.79 | 52.20 | 59.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/category-feature/class-lib/CF_WidgetClass.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; Featured_Category_Widget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_featured_category_widget
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=featured-category-settings
- > Deprecated in wp-content/plugins/category-feature/class-lib/CF_WidgetClass.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; Featured_Category_Widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=featured-category-settings
- > Deprecated in wp-content/plugins/category-feature/class-lib/CF_WidgetClass.php+508
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=featured-category-settings
- > Notice in wp-content/plugins/category-feature/class-lib/CF_AdminClass.php+124
Undefined index: css
- > GET request to /wp-admin/options-general.php?page=featured-category-settings
- > Notice in wp-content/plugins/category-feature/class-lib/CF_AdminClass.php+132
Undefined index: custom_css
SRP 50% 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
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'A5_OptionPage' not found in wp-content/plugins/category-feature/class-lib/CF_AdminClass.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/category-feature/class-lib/A5_WidgetClass.php:14
- > PHP Fatal error
Uncaught Error: Class 'A5_Widget' not found in wp-content/plugins/category-feature/class-lib/CF_WidgetClass.php:12
- > PHP Fatal error
Uncaught Error: Class 'A5_DynamicFiles' not found in wp-content/plugins/category-feature/class-lib/CF_DynamicCSSClass.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=featured-category-settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/category-feature/ta-expander.min.js?ver=3.0:1:2865)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=featured-category-settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
category-feature/category-feature.php 92% from 13 tests
The principal PHP file in "Featured Category Widget" v. 2.5 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 253 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,215 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 1,348 | 518 | 1,757 |
PO File | 1 | 93 | 99 | 297 |
JavaScript | 2 | 65 | 16 | 161 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 28.80 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 4.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 32 | 36.36% |
▷ Public methods | 79 | 89.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 10.23% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/a5-icon-11.png | 0.67KB | 0.42KB | ▼ 37.17% |
img/a5-icon-34.png | 1.65KB | 1.35KB | ▼ 18.07% |