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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.42ms] Passed 4 tests
Analyzing server-side resources used by Custom Cat
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.06 | 42.68 ▼1.94 |
Dashboard /wp-admin | 3.41 ▲0.07 | 51.65 ▲0.37 |
Posts /wp-admin/edit.php | 3.53 ▲0.13 | 50.16 ▼13.56 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.08 | 88.27 ▼10.56 |
Media Library /wp-admin/upload.php | 3.34 ▲0.07 | 44.20 ▲7.90 |
Custom Cat /wp-admin/admin.php?page=custom-cat | 3.31 | 33.98 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Cat
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲169 | 13.82 ▼0.53 | 9.53 ▲7.65 | 45.29 ▲2.97 |
Dashboard /wp-admin | 2,215 ▲38 | 5.83 ▲0.23 | 98.56 ▲9.51 | 42.67 ▼0.38 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 2.35 ▲0.36 | 34.34 ▼6.98 | 33.53 ▼5.04 |
Add New Post /wp-admin/post-new.php | 6,305 ▲4,770 | 26.70 ▲8.46 | 935.50 ▲307.48 | 60.43 ▼13.16 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.53 ▲0.31 | 113.62 ▲11.62 | 47.02 ▲3.66 |
Custom Cat /wp-admin/admin.php?page=custom-cat | 839 | 1.87 | 26.94 | 25.45 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-cat/view/custom-cat-box-content.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/custom-cat/view/main-options-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-cat/core/controller/class-post-meta-xhr.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-cat/core/hooks/class-hide-default.php:8
- > PHP Fatal error
Uncaught Error: Class 'cc_base_controller' not found in wp-content/plugins/custom-cat/core/controller/class-post-meta.php:6
- > PHP Notice
Undefined variable: available_taxonomies in wp-content/plugins/custom-cat/view/custom-cat-box-content.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/custom-cat/custom-cat.php:10
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/custom-cat/view/custom-cat-box-content.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'cc_base_controller' not found in wp-content/plugins/custom-cat/core/controller/class-main-options-page.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: taxonomy, taxonomies, categories, taxonomy manager, searchable category...
custom-cat/custom-cat.php Passed 13 tests
Analyzing the main PHP file in "Custom Cat" version 1.0.0
42 characters long description:
Customised taxonomy selector for WordPress
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
Good job! No executable or dangerous file extensions detected12,898 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 906 | 929 | 8,507 |
HTML | 3 | 65 | 0 | 3,200 |
CSS | 5 | 70 | 46 | 686 |
PHP | 12 | 76 | 25 | 407 |
JSON | 2 | 0 | 0 | 94 |
Markdown | 1 | 2 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 62.86% |
▷ Protected methods | 9 | 25.71% |
▷ Private methods | 4 | 11.43% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/library/chosen/docsupport/oss-credit.png | 4.30KB | 3.26KB | ▼ 24.02% |
assets/library/chosen/docsupport/chosen.png | 1.47KB | 2.08KB | 0.00% |
assets/library/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/library/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |