Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.67MB] [CPU: ▼45.74ms] Passed 4 tests
A check of server-side resources used by Sherk Custom Post Type Displays
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.33 ▼1.14 | 10.60 ▼33.94 |
Dashboard /wp-admin | 2.34 ▼0.96 | 11.84 ▼38.79 |
Posts /wp-admin/edit.php | 2.34 ▼1.02 | 12.71 ▼36.35 |
Add New Post /wp-admin/post-new.php | 2.34 ▼3.55 | 14.10 ▼73.89 |
Media Library /wp-admin/upload.php | 2.34 ▼0.89 | 11.54 ▼22.92 |
Sherk CPT Displays /wp-admin/tools.php?page=sherkcptdisplays_info | 2.34 | 13.73 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_sherk_cptdisplays_widget_id |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Sherk Custom Post Type Displays: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.23 ▼1.17 | 1.73 ▼0.21 | 41.66 ▼0.48 |
Dashboard /wp-admin | 2,210 ▲25 | 4.85 ▼1.02 | 113.37 ▲8.07 | 44.34 ▲4.35 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.06 ▲0.04 | 35.11 ▲2.26 | 31.46 ▼4.15 |
Add New Post /wp-admin/post-new.php | 1,517 ▼17 | 17.68 ▼5.54 | 661.16 ▲52.70 | 51.48 ▼13.63 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.22 ▲0.05 | 96.47 ▼6.33 | 43.91 ▲2.92 |
Sherk CPT Displays /wp-admin/tools.php?page=sherkcptdisplays_info | 1,194 | 2.02 | 25.88 | 46.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in SherkCPTDisplaysWidget is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_sherk_cptdisplays_widget_id
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/tools.php?page=sherkcptdisplays_info
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in SherkCPTDisplaysWidget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/tools.php?page=sherkcptdisplays_info
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/tools.php?page=sherkcptdisplays_info
- > Notice in wp-content/plugins/sherk-custom-post-type-displays/templates/sherkcptdisplays_dashboard.php+58
Undefined variable: optionPosts
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
The following issues need your attention
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sherk-custom-post-type-displays/includes/SherkCPTDisplaysCssJsScripts.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sherk-custom-post-type-displays/includes/SherkCPTDisplaysShortcode.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/sherk-custom-post-type-displays/templates/sherkcptdisplays_dashboard.php:55
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sherk-custom-post-type-displays/includes/SherkCPTDisplaysWidget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sherk-custom-post-type-displays/includes/SherkCPTDisplaysShortcode.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sherk-custom-post-type-displays/includes/SherkCPTDisplaysMenu.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: custom post types, widget, shortcode, display post type, list post type...
sherk-custom-post-type-displays/sherk_cpt_display.php 92% from 13 tests
The main PHP file in "Sherk Custom Post Type Displays" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("sherk-custom-post-type-displays.php" instead of "sherk_cpt_display.php")
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
Everything looks great! No dangerous files found in this plugin472 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 144 | 74 | 371 |
Markdown | 1 | 34 | 0 | 75 |
CSS | 1 | 7 | 9 | 26 |
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.21 |
Average class complexity | 6.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 2 | 12.50% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
assets/images/logo.png | 49.81KB | 14.78KB | ▼ 70.33% |