Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.87MB] [CPU: ▼35.82ms] Passed 4 tests
A check of server-side resources used by Food Business Gross Profit Calculator Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 36.31 ▼1.93 |
Dashboard /wp-admin | 3.07 ▼0.23 | 22.71 ▼25.30 |
Posts /wp-admin/edit.php | 3.07 ▼0.28 | 23.39 ▼23.93 |
Add New Post /wp-admin/post-new.php | 3.07 ▼2.81 | 21.81 ▼82.00 |
Media Library /wp-admin/upload.php | 3.07 ▼0.16 | 23.18 ▼12.06 |
How To Use /wp-admin/edit.php?post_type=screcipe&page=screcipe_info | 3.07 | 23.02 |
Recipe Categories /wp-admin/edit-tags.php?taxonomy=screcipe_categories&post_type=screcipe | 3.08 | 23.46 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=screcipe | 3.08 | 27.61 |
Recipes /wp-admin/edit.php?post_type=screcipe | 3.07 | 22.60 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=screcipe | 3.08 | 23.65 |
Add New /wp-admin/post-new.php?post_type=screcipe | 3.07 | 22.89 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
category_children |
Browser metrics Passed 4 tests
Food Business Gross Profit Calculator Plugin: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲99 | 14.17 ▼0.12 | 2.02 ▲0.40 | 40.08 ▼1.96 |
Dashboard /wp-admin | 2,238 ▲61 | 5.62 ▲0.11 | 83.55 ▼9.18 | 37.34 ▼5.13 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.04 ▲0.01 | 38.48 ▲2.24 | 36.17 ▼2.98 |
Add New Post /wp-admin/post-new.php | 1,563 ▲34 | 23.23 ▼0.00 | 649.70 ▲49.88 | 58.71 ▲6.86 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.22 ▲0.04 | 96.41 ▼0.00 | 41.52 ▼0.17 |
How To Use /wp-admin/edit.php?post_type=screcipe&page=screcipe_info | 1,156 | 2.16 | 26.66 | 44.04 |
Recipe Categories /wp-admin/edit-tags.php?taxonomy=screcipe_categories&post_type=screcipe | 1,314 | 2.12 | 27.17 | 30.73 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=screcipe | 1,495 | 2.13 | 27.73 | 32.49 |
Recipes /wp-admin/edit.php?post_type=screcipe | 1,204 | 1.96 | 29.13 | 31.00 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=screcipe | 1,362 | 2.13 | 27.15 | 29.63 |
Add New /wp-admin/post-new.php?post_type=screcipe | 2,768 | 7.81 | 185.14 | 64.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > 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.)
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- category_children
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=screcipe
- > 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.)
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
Please fix the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/food-business-gross-profit-calculator/includes/SCRecipeCssJsScripts.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/food-business-gross-profit-calculator/includes/CPT_Recipe.php:8
- > PHP Fatal error
Uncaught Error: Class 'SCRecipe' not found in wp-content/plugins/food-business-gross-profit-calculator/templates/screcipe_dashboard.php:67
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/food-business-gross-profit-calculator/includes/CPT_Recipe.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/food-business-gross-profit-calculator/includes/SCRecipeMenu.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_terms() in wp-content/plugins/food-business-gross-profit-calculator/templates/single-screcipe-content.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
food-business-gross-profit-calculator/sc-recipe-calc.php 85% from 13 tests
"Food Business Gross Profit Calculator Plugin" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 155 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("food-business-gross-profit-calculator.php" instead of "sc-recipe-calc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected7,704 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,969 | 6,882 | 6,439 |
CSS | 4 | 23 | 63 | 816 |
PHP | 7 | 124 | 90 | 449 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 7.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 21 | |
▷ Static methods | 2 | 9.52% |
▷ Public methods | 21 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dbtables/media/images/sort_asc_disabled.png | 2.85KB | 0.25KB | ▼ 91.36% |
assets/dbtables/media/images/back_disabled.png | 1.33KB | 0.60KB | ▼ 55.11% |
assets/dbtables/media/images/forward_disabled.png | 1.33KB | 0.58KB | ▼ 56.42% |
assets/img/glyphicons-halflings.png | 13.50KB | 10.35KB | ▼ 23.34% |
assets/dbtables/media/images/sort_both.png | 1.11KB | 0.29KB | ▼ 74.12% |