Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▲4.31ms] Passed 4 tests
An overview of server-side resources used by Awesome Recipe
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 47.76 ▲2.10 |
Dashboard /wp-admin | 3.54 ▲0.24 | 56.07 ▼0.42 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 60.46 ▲13.24 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 95.23 ▲2.75 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 45.97 ▲12.80 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=arpcpt_recipe | 3.46 | 41.44 |
Recipe Settings /wp-admin/edit.php?post_type=arpcpt_recipe&page=arpcpt_recipe_settings | 3.44 | 38.36 |
Add New /wp-admin/post-new.php?post_type=arpcpt_recipe | 3.62 | 62.61 |
All Recipes /wp-admin/edit.php?post_type=arpcpt_recipe | 3.63 | 54.20 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=arpcpt_recipe | 3.46 | 47.48 |
Server storage [IO: ▲0.38MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 55 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_arpcpt_awesome_recipe_ratings |
wp_arpcpt_awesome_recipe_styles |
New WordPress options |
---|
category_children |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Awesome Recipe
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲246 | 13.70 ▼1.09 | 6.49 ▲4.38 | 43.66 ▼5.35 |
Dashboard /wp-admin | 2,269 ▲81 | 5.05 ▼0.96 | 114.38 ▼2.70 | 38.36 ▼5.84 |
Posts /wp-admin/edit.php | 2,157 ▲68 | 2.30 ▲0.25 | 42.14 ▲4.07 | 36.15 ▲2.37 |
Add New Post /wp-admin/post-new.php | 1,569 ▲41 | 23.31 ▼0.04 | 664.81 ▼11.23 | 35.42 ▼35.80 |
Media Library /wp-admin/upload.php | 1,454 ▲66 | 4.41 ▲0.22 | 98.79 ▼3.92 | 46.05 ▲1.91 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=arpcpt_recipe | 1,375 | 2.03 | 31.32 | 31.44 |
Recipe Settings /wp-admin/edit.php?post_type=arpcpt_recipe&page=arpcpt_recipe_settings | 2,082 | 2.90 | 92.94 | 35.08 |
Add New /wp-admin/post-new.php?post_type=arpcpt_recipe | 2,836 | 7.43 | 159.17 | 85.47 |
All Recipes /wp-admin/edit.php?post_type=arpcpt_recipe | 1,936 | 2.34 | 41.91 | 40.07 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=arpcpt_recipe | 1,514 | 2.06 | 34.02 | 33.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_arpcpt_awesome_recipe_ratings
- wp_arpcpt_awesome_recipe_styles
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- category_children
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/awesome-recipe/awesome-recipe.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/awesome-recipe/process/save-post.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-recipe/admin/enqueue.php:20
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #3 is required in awesome-recipe/assets to your readme.txt
awesome-recipe/awesome-recipe.php 85% from 13 tests
The entry point to "Awesome Recipe" version 1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin11,271 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 80 | 101 | 9,462 |
PHP | 14 | 747 | 183 | 1,105 |
SVG | 16 | 1 | 7 | 391 |
JavaScript | 4 | 88 | 59 | 313 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/picture.png | 42.03KB | 19.37KB | ▼ 53.92% |