Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼1.63ms] Passed 4 tests
This is a short check of server-side resources used by LWN Recipe
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 38.37 ▲0.30 |
Dashboard /wp-admin | 3.46 ▲0.15 | 51.72 ▲7.76 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 46.48 ▼4.22 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 83.40 ▼9.20 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 49.66 ▲6.62 |
Recipe Type /wp-admin/edit-tags.php?taxonomy=lwn_recipe_type&post_type=lwn_recipe | 3.38 | 35.79 |
Add New /wp-admin/post-new.php?post_type=lwn_recipe | 3.52 | 48.58 |
LWN Recipes /wp-admin/options-general.php?page=lwn-recipe-plugin | 3.35 | 30.16 |
LWN Recipes /wp-admin/edit.php?post_type=lwn_recipe | 3.42 | 35.80 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_lwn_recipe_latest_recipes |
theysaidso_admin_options |
widget_recent-comments |
widget_lwn_recipe_recipe_types |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for LWN Recipe
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲134 | 13.72 ▼0.67 | 1.79 ▲0.14 | 42.54 ▼4.95 |
Dashboard /wp-admin | 2,247 ▲56 | 4.87 ▼0.00 | 96.56 ▼2.29 | 42.34 ▼3.75 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 1.99 ▼0.06 | 33.35 ▼12.38 | 36.73 ▼0.29 |
Add New Post /wp-admin/post-new.php | 1,548 ▲14 | 18.14 ▼4.87 | 663.88 ▼13.89 | 54.26 ▼11.71 |
Media Library /wp-admin/upload.php | 1,429 ▲41 | 4.15 ▼0.02 | 105.24 ▲2.15 | 43.29 ▼0.96 |
Recipe Type /wp-admin/edit-tags.php?taxonomy=lwn_recipe_type&post_type=lwn_recipe | 1,300 | 2.14 | 25.48 | 26.05 |
Add New /wp-admin/post-new.php?post_type=lwn_recipe | 2,961 | 8.63 | 170.24 | 68.66 |
LWN Recipes /wp-admin/options-general.php?page=lwn-recipe-plugin | 971 | 2.02 | 21.53 | 27.09 |
LWN Recipes /wp-admin/edit.php?post_type=lwn_recipe | 1,137 | 1.94 | 32.06 | 30.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_lwn_recipe_recipe_types
- widget_recent-comments
- widget_lwn_recipe_latest_recipes
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/lwn-recipe/templates/single-lwn_recipe.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lwn-recipe/includes/register-widgets.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lwn-recipe/admin/admin-config.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/lwn-recipe/lwn-recipe.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/lwn-recipe/includes/display-recipe-template.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/lwn-recipe/templates/archive-lwn_recipe.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lwn-recipe/includes/register-recipe-type.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lwn-recipe/includes/register-recipe-taxonomy.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lwn-recipe/includes/register-recipe-metabox.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lwn-recipe/includes/register-sidebar.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: food, cook, recipes, kitchens, restaurants
lwn-recipe/lwn-recipe.php 85% from 13 tests
The main PHP file in "LWN Recipe" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Requires PHP: The required version number must match the one declared in readme.txt ("5.3" instead of "7.2")
- Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,650 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 119 | 43 | 1,124 |
CSS | 6 | 19 | 19 | 336 |
PO File | 1 | 78 | 84 | 190 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin