Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/editable-recipe/editableRecipe.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; EditableRecipe has a deprecated constructor
Server metrics [RAM: ▼1.84MB] [CPU: ▼56.10ms] Passed 4 tests
An overview of server-side resources used by Editable Recipe
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 6.07 ▼36.43 |
Dashboard /wp-admin | 2.16 ▼1.14 | 5.62 ▼44.00 |
Posts /wp-admin/edit.php | 2.16 ▼1.19 | 5.85 ▼45.32 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.72 | 5.63 ▼98.64 |
Media Library /wp-admin/upload.php | 2.16 ▼1.06 | 5.34 ▼31.75 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Editable Recipe
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.16 ▼1.48 | 1.92 ▲0.29 | 44.61 ▼2.64 |
Dashboard /wp-admin | 2,203 ▲15 | 4.86 ▼1.03 | 106.13 ▼0.97 | 40.56 ▼0.30 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.06 ▲0.03 | 34.98 ▼5.87 | 34.10 ▼1.46 |
Add New Post /wp-admin/post-new.php | 6,858 ▲5,322 | 23.74 ▲0.42 | 963.26 ▲354.98 | 90.17 ▲32.76 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.24 ▲0.06 | 98.97 ▲0.05 | 40.81 ▼1.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/editable-recipe/editableRecipe.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; EditableRecipe has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/editable-recipe/editableRecipe.php:367
- > 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 on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== editable-recipe ===
)
editable-recipe/editableRecipe.php 85% from 13 tests
The principal PHP file in "Editable Recipe" v. 2.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("editable-recipe.php" instead of "editableRecipe.php")
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
No dangerous file extensions were detected423 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 95 | 56 | 356 |
CSS | 2 | 13 | 0 | 67 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.41MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 42.29KB | 15.70KB | ▼ 62.87% |
assets/screenshot-2.png | 32.84KB | 11.27KB | ▼ 65.68% |
assets/screenshot-1.png | 237.44KB | 78.50KB | ▼ 66.94% |
images/recipegradient.png | 34.93KB | 22.89KB | ▼ 34.48% |
images/print.png | 0.56KB | 0.48KB | ▼ 13.59% |