Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.31MB] [CPU: ▲0.10ms] Passed 4 tests
Analyzing server-side resources used by MB Custom Post Types & Custom Taxonomies
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 41.12 ▲0.90 |
Dashboard /wp-admin | 3.70 ▲0.35 | 55.17 ▼6.11 |
Posts /wp-admin/edit.php | 3.75 ▲0.40 | 51.22 ▲5.38 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 94.68 ▲3.41 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 35.34 ▲2.21 |
Taxonomies /wp-admin/edit.php?post_type=mb-taxonomy | 3.61 | 43.33 |
Post Types /wp-admin/edit.php?post_type=mb-post-type | 3.61 | 40.34 |
New Post Type /wp-admin/post-new.php?post_type=mb-post-type | 3.65 | 45.20 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
MB Custom Post Types & Custom Taxonomies: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲72 | 14.23 ▼0.02 | 1.71 ▲0.03 | 38.03 ▼5.49 |
Dashboard /wp-admin | 2,233 ▲53 | 5.57 ▼0.12 | 88.04 ▼5.46 | 39.76 ▼6.13 |
Posts /wp-admin/edit.php | 2,141 ▲44 | 1.96 ▼0.05 | 38.97 ▲0.90 | 36.28 ▼0.93 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.14 ▼0.16 | 666.70 ▼1.49 | 55.09 ▲3.80 |
Media Library /wp-admin/upload.php | 1,435 ▲32 | 4.24 ▲0.10 | 98.79 ▲1.51 | 44.33 ▲2.21 |
Taxonomies /wp-admin/edit.php?post_type=mb-taxonomy | 1,219 | 6.20 | 144.00 | 30.02 |
Post Types /wp-admin/edit.php?post_type=mb-post-type | 1,222 | 6.18 | 61.39 | 29.09 |
New Post Type /wp-admin/post-new.php?post_type=mb-post-type | 1,627 | 8.83 | 137.06 | 39.41 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'MBCPT\\Register' not found in wp-content/plugins/mb-custom-post-type/src/TaxonomyRegister.php:6
- > PHP Fatal error
Uncaught Error: Class 'MBCPT\\Register' not found in wp-content/plugins/mb-custom-post-type/src/PostTypeRegister.php:7
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
- Screenshots: No descriptions were found for these screenshots #2, #3, #4, #5, #6 in mb-custom-post-type/assets to your readme.txt
mb-custom-post-type/mb-custom-post-type.php Passed 13 tests
"MB Custom Post Types & Custom Taxonomies" version 2.6.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
66 characters long description:
Create custom post types and custom taxonomies with easy-to-use UI
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
There were no executable files found in this plugin2,256 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 321 | 496 | 2,183 |
JavaScript | 4 | 15 | 3 | 53 |
CSS | 2 | 0 | 1 | 20 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 17.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 1 | 6.25% |
▷ Concrete classes | 15 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 114 | |
▷ Static methods | 30 | 26.32% |
▷ Public methods | 93 | 81.58% |
▷ Protected methods | 3 | 2.63% |
▷ Private methods | 18 | 15.79% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected