Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/recipe-manager/classes/Admin/Ingredients/Metaboxes.php+400
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
Server metrics [RAM: ▲0.21MB] [CPU: ▲2.86ms] Passed 4 tests
This is a short check of server-side resources used by Recipe Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 51.07 ▲11.94 |
Dashboard /wp-admin | 3.56 ▲0.26 | 1,054.21 ▲1,007.59 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 51.28 ▲5.85 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 88.65 ▼12.34 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 38.29 ▲5.99 |
All Recipes /wp-admin/edit.php?post_type=recipe | 3.63 | 48.17 |
Tools /wp-admin/edit.php?post_type=recipe&page=rcpm-tools | 3.81 | 415.51 |
Add New /wp-admin/post-new.php?post_type=recipe | 3.63 | 60.72 |
Course /wp-admin/edit-tags.php?taxonomy=recipe_course&post_type=recipe | 3.41 | 41.84 |
Addons /wp-admin/edit.php?post_type=recipe&page=rcpm-addons | 3.35 | 33.91 |
Add New /wp-admin/post-new.php?post_type=ingredient | 3.54 | 53.36 |
Ingredients /wp-admin/edit.php?post_type=ingredient | 3.57 | 53.72 |
Settings /wp-admin/edit.php?post_type=recipe&page=rcpm-settings | 3.37 | 32.24 |
Server storage [IO: ▲0.65MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 143 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_rcpm_recipe_ingredients |
New WordPress options |
---|
theysaidso_admin_options |
rcpm_default_recipe_course_terms |
can_compress_scripts |
wp_rcpm_recipe_ingredients_db_version |
widget_recent-comments |
rcpm_settings |
db_upgraded |
widget_theysaidso_widget |
rcpm_tracking_last_send |
rcpm_sample_recipe_1 |
... |
Browser metrics Passed 4 tests
Recipe Manager: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,972 ▲237 | 13.66 ▼0.72 | 5.57 ▲3.81 | 42.52 ▼4.78 |
Dashboard /wp-admin | 2,287 ▲99 | 5.80 ▲0.93 | 96.14 ▼7.13 | 41.61 ▲1.94 |
Posts /wp-admin/edit.php | 2,169 ▲80 | 2.05 ▲0.08 | 33.03 ▼2.79 | 34.13 ▲1.29 |
Add New Post /wp-admin/post-new.php | 1,605 ▲91 | 23.46 ▲5.90 | 663.03 ▼41.28 | 56.18 ▲1.98 |
Media Library /wp-admin/upload.php | 1,515 ▲127 | 4.37 ▲0.17 | 98.38 ▼11.66 | 44.34 ▼1.21 |
All Recipes /wp-admin/edit.php?post_type=recipe | 1,855 | 2.04 | 33.60 | 33.53 |
Tools /wp-admin/edit.php?post_type=recipe&page=rcpm-tools | 852 | 2.16 | 25.83 | 26.72 |
Add New /wp-admin/post-new.php?post_type=recipe | 3,093 | 8.01 | 216.64 | 81.70 |
Course /wp-admin/edit-tags.php?taxonomy=recipe_course&post_type=recipe | 1,704 | 2.31 | 26.75 | 35.70 |
Addons /wp-admin/edit.php?post_type=recipe&page=rcpm-addons | 846 | 2.03 | 25.00 | 25.43 |
Add New /wp-admin/post-new.php?post_type=ingredient | 2,621 | 8.01 | 181.67 | 59.64 |
Ingredients /wp-admin/edit.php?post_type=ingredient | 3,338 | 2.15 | 36.60 | 36.18 |
Settings /wp-admin/edit.php?post_type=recipe&page=rcpm-settings | 928 | 2.39 | 27.35 | 26.58 |
Uninstaller [IO: ▲0.68MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_rcpm_recipe_ingredients
- Zombie WordPress options were found after uninstall: 12 options
- wp_rcpm_recipe_ingredients_db_version
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- rcpm_sample_recipe_1
- rcpm_default_recipe_course_terms
- rcpm_settings
- db_upgraded
- theysaidso_admin_options
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/edit.php?post_type=recipe&page=rcpm-tools
- > Warning in wp-content/plugins/recipe-manager/includes/tool-functions.php+147
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/edit.php?post_type=recipe&page=rcpm-tools
- > Deprecated in wp-content/plugins/recipe-manager/includes/libraries/browser.php+153
Methods with the same name as their class will not be constructors in a future version of PHP; Browser has a deprecated constructor
- > GET request to /wp-admin/edit.php?post_type=recipe&page=rcpm-addons
- > Warning in wp-content/plugins/recipe-manager/includes/addon-functions.php+9
file_get_contents(wp-content/plugins/recipe-manager/includes/addon-list.json): failed to open stream: No such file or directory
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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/recipe-manager/templates/loop/loop-end.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function rcpm_attr() in wp-content/plugins/recipe-manager/templates/loop/loop-start.php:10
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
recipe-manager/recipe-manager.php 92% from 13 tests
The entry point to "Recipe Manager" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Please improve your description making it at least 10 characters long (currently 0 characters long)
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
Good job! No executable or dangerous file extensions detected10,787 lines of code in 135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 82 | 2,156 | 3,429 | 6,709 |
Sass | 31 | 211 | 28 | 2,467 |
CSS | 12 | 160 | 56 | 816 |
JavaScript | 10 | 101 | 28 | 795 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 21.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 252 | |
▷ Static methods | 81 | 32.14% |
▷ Public methods | 214 | 84.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 38 | 15.08% |
Functions | 137 | |
▷ Named functions | 137 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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