Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.61ms] Passed 4 tests
A check of server-side resources used by Categories Metabox Enhanced
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 40.23 ▲3.50 |
Dashboard /wp-admin | 3.47 ▲0.16 | 48.35 ▲1.46 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 45.84 ▼2.11 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 80.79 ▼17.50 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 33.79 ▼0.29 |
Categories Metabox Enhanced /wp-admin/options-general.php?page=category-metabox-enhanced | 3.36 | 31.67 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
cme-display-activation-message |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
category-metabox-enhanced_category |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Categories Metabox Enhanced
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▲0.08 | 1.76 ▲0.20 | 44.90 ▲5.20 |
Dashboard /wp-admin | 2,199 ▲22 | 5.63 ▼0.06 | 86.78 ▼1.78 | 42.00 ▲1.57 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.04 ▲0.06 | 34.64 ▼2.93 | 32.70 ▼0.32 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.60 ▲0.35 | 674.91 ▲88.73 | 58.15 ▲5.70 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▼0.19 | 102.53 ▲6.98 | 44.69 ▼0.87 |
Categories Metabox Enhanced /wp-admin/options-general.php?page=category-metabox-enhanced | 931 | 2.05 | 22.79 | 33.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/categories-metabox-enhanced/admin/views/settings.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: metabox, taxonomy, category
categories-metabox-enhanced/categories-metabox-enhanced.php 92% from 13 tests
The main PHP file in "Categories Metabox Enhanced" ver. 0.7.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin946 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 313 | 872 | 871 |
Markdown | 1 | 22 | 0 | 58 |
JSON | 1 | 0 | 0 | 7 |
JavaScript | 1 | 0 | 0 | 6 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 12.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 4 | 6.45% |
▷ Public methods | 55 | 88.71% |
▷ Protected methods | 1 | 1.61% |
▷ Private methods | 6 | 9.68% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin