Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▼2.53ms] Passed 4 tests
An overview of server-side resources used by EasyRecipe
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.57 | 45.18 ▲5.24 |
Dashboard /wp-admin | 3.86 ▲0.55 | 56.10 ▼1.07 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 53.13 ▲5.05 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 81.10 ▼19.34 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 41.22 ▲6.30 |
Server storage [IO: ▲1.95MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 293 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
EasyRecipe |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for EasyRecipe
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲108 | 14.38 ▲0.00 | 1.68 ▼0.07 | 39.55 ▼2.53 |
Dashboard /wp-admin | 2,260 ▲80 | 5.74 ▲0.03 | 92.22 ▼1.48 | 78.93 ▲37.00 |
Posts /wp-admin/edit.php | 2,177 ▲77 | 2.28 ▲0.26 | 45.88 ▲2.56 | 36.41 ▲0.33 |
Add New Post /wp-admin/post-new.php | 2,228 ▲702 | 21.54 ▼1.46 | 697.19 ▲21.27 | 195.85 ▲131.42 |
Media Library /wp-admin/upload.php | 1,475 ▲75 | 4.20 ▼0.04 | 103.04 ▼8.19 | 74.67 ▲29.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/easyrecipe/uninstall.php+9
fopen(https://www.easyrecipeplugin.com/installed.php?action=uninstall&site=http%3A%2F%2Fwp.com): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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/easyrecipe/easyrecipe.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easyrecipe/lib/EasyRecipeTemplate.php on line 453
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easyrecipe/lib/EasyRecipeTemplate.php on line 444
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easyrecipe/lib/EasyRecipeTemplate.php on line 487
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easyrecipe/lib/EasyRecipeTemplate.php on line 478
- > PHP Fatal error
Uncaught Error: Class 'EasyRecipeDOMDocument' not found in wp-content/plugins/easyrecipe/lib/EasyRecipeDocument.php:17
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easyrecipe/lib/EasyRecipeTemplate.php on line 371
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easyrecipe/lib/EasyRecipeTemplate.php on line 498
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easyrecipe/lib/EasyRecipeTemplate.php on line 428
- > PHP Warning
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: hrecipe, recipe, microformatting, recipe view, seo...
easyrecipe/easyrecipe.php 92% from 13 tests
The principal PHP file in "EasyRecipe" v. 3.5.3251 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 192 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin13,742 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 25 | 935 | 385 | 6,409 |
PHP | 17 | 982 | 2,054 | 4,290 |
HTML | 31 | 114 | 1,064 | 3,031 |
JavaScript | 12 | 0 | 0 | 12 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 154)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 51.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 157.00 |
Average method complexity | 5.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 154.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 171 | |
▷ Static methods | 10 | 5.85% |
▷ Public methods | 148 | 86.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 23 | 13.45% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 35 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 35 | 100.00% |
▷ Public constants | 35 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
168 PNG files occupy 0.69MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
styles/style005/images/greystar16.png | 0.29KB | 0.24KB | ▼ 18.24% |
formatui/images-1.10.4/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
images/google-dev.png | 3.35KB | 0.81KB | ▼ 75.90% |
formatui/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
formatui/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |