Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼6.08ms] Passed 4 tests
A check of server-side resources used by WPDevHub Recipe Catalog
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 39.85 ▼4.78 |
Dashboard /wp-admin | 3.47 ▲0.12 | 50.50 ▼11.68 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 51.30 ▲0.89 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 93.77 ▼8.76 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.46 ▲1.28 |
Settings /wp-admin/edit.php?post_type=wpdevhub_drc_recipe&page=wpdevhub-drc-settings | 3.34 | 38.81 |
Categories /wp-admin/edit-tags.php?taxonomy=wpdevhub_drc_recipe_category&post_type=wpdevhub_drc_recipe | 3.48 | 37.95 |
All Recipes /wp-admin/edit.php?post_type=wpdevhub_drc_recipe | 3.44 | 38.87 |
Add New /wp-admin/post-new.php?post_type=wpdevhub_drc_recipe | 3.56 | 57.70 |
Tags /wp-admin/edit-tags.php?taxonomy=wpdevhub_drc_recipe_tag&post_type=wpdevhub_drc_recipe | 3.32 | 37.04 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 65 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
wpdevhub-drc-db-version |
Browser metrics Passed 4 tests
A check of browser resources used by WPDevHub Recipe Catalog
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲175 | 13.53 ▼1.02 | 7.99 ▲5.69 | 45.07 ▼0.79 |
Dashboard /wp-admin | 2,241 ▲70 | 5.66 ▲0.02 | 95.26 ▲4.61 | 42.51 ▼0.30 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.03 ▼0.01 | 37.09 ▼6.02 | 31.12 ▼7.19 |
Add New Post /wp-admin/post-new.php | 1,564 ▲36 | 21.95 ▼1.19 | 663.14 ▼27.33 | 54.21 ▲4.33 |
Media Library /wp-admin/upload.php | 1,449 ▲49 | 4.15 ▼0.05 | 99.42 ▼2.23 | 42.19 ▼3.71 |
Settings /wp-admin/edit.php?post_type=wpdevhub_drc_recipe&page=wpdevhub-drc-settings | 1,004 | 1.69 | 25.00 | 35.45 |
Categories /wp-admin/edit-tags.php?taxonomy=wpdevhub_drc_recipe_category&post_type=wpdevhub_drc_recipe | 1,323 | 2.17 | 30.59 | 31.58 |
All Recipes /wp-admin/edit.php?post_type=wpdevhub_drc_recipe | 1,158 | 1.99 | 33.00 | 32.93 |
Add New /wp-admin/post-new.php?post_type=wpdevhub_drc_recipe | 2,904 | 8.09 | 177.90 | 74.90 |
Tags /wp-admin/edit-tags.php?taxonomy=wpdevhub_drc_recipe_tag&post_type=wpdevhub_drc_recipe | 1,292 | 2.17 | 26.72 | 28.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- wpdevhub-drc-db-version
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPDEVHUB_DRC_StandardCustomPostType' not found in wp-content/plugins/wpdevhub-recipes/classes/class.WPDEVHUB_DRC_Recipes_Recipe.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPDEVHUB_DRC_StandardMetaBox' not found in wp-content/plugins/wpdevhub-recipes/classes/core/class.WPDEVHUB_DRC_StandardMetaBoxAndDbObject.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPDEVHUB_DRC_StandardMetaBox' not found in wp-content/plugins/wpdevhub-recipes/classes/class.WPDEVHUB_DRC_Recipes_InstructionMetaBox.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPDEVHUB_DRC_StandardMetaBox' not found in wp-content/plugins/wpdevhub-recipes/classes/class.WPDEVHUB_DRC_Recipes_MediaMetaBox.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPDEVHUB_DRC_StandardMetaBox' not found in wp-content/plugins/wpdevhub-recipes/classes/class.WPDEVHUB_DRC_Recipes_ExtraInfoMetaBox.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpdevhub-recipes/classes/class.WPDEVHUB_DRC_Recipes_CardLinkWidget.php:11
- > PHP Fatal error
Uncaught Error: Class 'WPDEVHUB_DRC_StandardMetaBox' not found in wp-content/plugins/wpdevhub-recipes/classes/class.WPDEVHUB_DRC_Recipes_RecipeShortCodeMetaBox.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPDEVHUB_DRC_Utilities' not found in wp-content/plugins/wpdevhub-recipes/pages/inc.settings-base.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wpdevhub_drc_add_define() in wp-content/plugins/wpdevhub-recipes/inc/inc.ver.php:4
- > PHP Fatal error
Uncaught Error: Class 'WPDEVHUB_DRC_StandardMain' not found in wp-content/plugins/wpdevhub-recipes/classes/class.WPDEVHUB_DRC_Recipes_Main.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6 in wpdevhub-recipes/assets to your readme.txt
wpdevhub-recipes/index.php 92% from 13 tests
The main PHP file in "WPDevHub Recipe Catalog" ver. 2.7 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wpdevhub-recipes.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin6,426 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 1,257 | 1,593 | 4,947 |
CSS | 2 | 107 | 30 | 843 |
JavaScript | 3 | 127 | 118 | 636 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 27.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 240.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 95.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 330 | |
▷ Static methods | 284 | 86.06% |
▷ Public methods | 330 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 176 | |
▷ Global constants | 4 | 2.27% |
▷ Class constants | 172 | 97.73% |
▷ Public constants | 172 | 100.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
24 PNG files occupy 0.17MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo_300.png | 14.72KB | 4.28KB | ▼ 70.95% |
images/page_add.png | 1.33KB | 1.31KB | ▼ 1.32% |
images/document_layout.png | 0.91KB | 1.00KB | 0.00% |
images/group.png | 2.04KB | 1.52KB | ▼ 25.61% |
images/facebook-icon32.png | 2.15KB | 1.75KB | ▼ 18.51% |