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 gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.93ms] Passed 4 tests
A check of server-side resources used by Custom Post Type Auto Menu
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 41.20 ▼0.54 |
Dashboard /wp-admin | 3.45 ▲0.11 | 47.31 ▼14.80 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 50.91 ▲1.08 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 90.21 ▼6.59 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 35.69 ▼1.80 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
cpt_auto_menu_cpt_list |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
cpt_auto_menu_settings |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Post Type Auto Menu
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 14.17 ▼0.23 | 1.71 ▼0.00 | 37.83 ▼3.54 |
Dashboard /wp-admin | 2,211 ▲37 | 5.64 ▲0.00 | 95.86 ▼0.66 | 37.78 ▼1.43 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.99 ▲0.01 | 41.66 ▲5.22 | 36.81 ▲3.01 |
Add New Post /wp-admin/post-new.php | 1,539 ▲4 | 23.20 ▲4.97 | 682.03 ▲75.05 | 60.64 ▼8.58 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.18 ▼0.01 | 97.28 ▼3.95 | 42.39 ▼1.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 take a closer look at the following
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/custom-post-type-auto-menu/includes/Plugin.php
- > /wp-content/plugins/custom-post-type-auto-menu/includes/Menu_Handler.php
- > /wp-content/plugins/custom-post-type-auto-menu/includes/Settings_Page.php
- > /wp-content/plugins/custom-post-type-auto-menu/bfp-cpt-auto-menu.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/custom-post-type-auto-menu/views/settings.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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: custom post type, menus, auto menu
custom-post-type-auto-menu/bfp-cpt-auto-menu.php 85% from 13 tests
Analyzing the main PHP file in "Custom Post Type Auto Menu" version 1.3.1
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-post-type-auto-menu.php" instead of "bfp-cpt-auto-menu.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin1,155 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 253 | 587 | 637 |
PO File | 5 | 120 | 120 | 379 |
Markdown | 1 | 39 | 0 | 91 |
CSS | 1 | 7 | 2 | 29 |
JavaScript | 1 | 10 | 19 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 27.67 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 77.36% |
▷ Protected methods | 1 | 1.89% |
▷ Private methods | 11 | 20.75% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected