Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▲0.94ms] Passed 4 tests
Server-side resources used by TP Recipe
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 51.10 ▲8.81 |
Dashboard /wp-admin | 3.37 ▲0.06 | 44.12 ▼0.42 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.98 ▲2.10 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 92.24 ▼2.98 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.21 ▲5.04 |
Add New /wp-admin/post-new.php?post_type=tp-recipe | 3.44 | 50.20 |
All Ingredients /wp-admin/edit.php?post_type=tp-ingredient | 3.33 | 38.43 |
All Recipes /wp-admin/edit.php?post_type=tp-recipe | 3.33 | 32.92 |
Recipe Category /wp-admin/edit-tags.php?taxonomy=tp-recipe-category&post_type=tp-recipe | 3.28 | 29.36 |
Add New /wp-admin/post-new.php?post_type=tp-ingredient | 3.35 | 48.16 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TP Recipe
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲129 | 14.48 ▲0.17 | 2.28 ▲0.45 | 50.96 ▲0.73 |
Dashboard /wp-admin | 2,267 ▲76 | 4.85 ▼1.05 | 100.66 ▲0.11 | 39.38 ▼8.11 |
Posts /wp-admin/edit.php | 2,147 ▲55 | 2.05 ▼0.00 | 39.54 ▼0.01 | 35.75 ▼0.49 |
Add New Post /wp-admin/post-new.php | 1,579 ▲59 | 23.42 ▲0.39 | 640.79 ▲34.12 | 38.65 ▼18.27 |
Media Library /wp-admin/upload.php | 1,449 ▲64 | 4.17 ▼0.02 | 98.84 ▲1.07 | 43.67 ▲1.08 |
Add New /wp-admin/post-new.php?post_type=tp-recipe | 2,967 | 8.23 | 201.93 | 97.02 |
All Ingredients /wp-admin/edit.php?post_type=tp-ingredient | 1,099 | 2.01 | 31.93 | 28.89 |
All Recipes /wp-admin/edit.php?post_type=tp-recipe | 1,167 | 1.97 | 31.52 | 30.09 |
Recipe Category /wp-admin/edit-tags.php?taxonomy=tp-recipe-category&post_type=tp-recipe | 1,323 | 2.14 | 28.05 | 26.58 |
Add New /wp-admin/post-new.php?post_type=tp-ingredient | 1,666 | 3.66 | 66.81 | 30.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 8× 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/tp-recipe/tp-recipe/include/tp-functions.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tp-recipe/tp-recipe/templates/tp-single-recipe.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp-recipe/tp-recipe/templates/template-part/tp-content-single.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp-recipe/templates/template-part/tp-content-single.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp-recipe/include/tp-functions.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tp-recipe/templates/tp-single-recipe.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tp-recipe/tp-recipe/templates/tp-archive-recipe.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tp-recipe/templates/tp-archive-recipe.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: ingredient quantity, ingredients, restaurant, recipe
tp-recipe/tp-recipe.php Passed 13 tests
"TP Recipe" version 1.1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
139 characters long description:
This Plugin provides you an Food Item Recipe and it's ingredients forms to uplift your Restaurant Website with your prominent item recipes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,551 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 120 | 17 | 1,215 |
PHP | 10 | 157 | 199 | 687 |
CSS | 4 | 27 | 59 | 649 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 2 | 20.00% |
Methods | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 34 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.56% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
tp-recipe/assets/css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
tp-recipe/assets/css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |