Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.51MB] [CPU: ▲0.53ms] Passed 4 tests
An overview of server-side resources used by Recipe Calculator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.32 | 47.06 ▲5.93 |
Dashboard /wp-admin | 6.78 ▲3.44 | 530,671.28 ▲530,614.44 |
Posts /wp-admin/edit.php | 3.87 ▲0.47 | 55.09 ▼1.96 |
Add New Post /wp-admin/post-new.php | 6.69 ▲0.76 | 111.81 ▼1.31 |
Media Library /wp-admin/upload.php | 3.77 ▲0.50 | 41.44 ▼0.52 |
Server storage [IO: ▲2.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 359 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Recipe Calculator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,034 ▲263 | 13.57 ▼0.85 | 14.74 ▲12.67 | 85.94 ▲44.29 |
Dashboard /wp-admin | 2,210 ▲33 | 5.63 ▼0.04 | 90.40 ▼4.52 | 43.05 ▲2.57 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.05 ▲0.05 | 38.69 ▼2.88 | 34.11 ▼4.71 |
Add New Post /wp-admin/post-new.php | 6,426 ▲4,900 | 26.02 ▲2.31 | 894.73 ▲207.52 | 86.07 ▲25.23 |
Media Library /wp-admin/upload.php | 1,415 ▲12 | 4.29 ▲0.13 | 106.91 ▲1.57 | 43.76 ▼3.67 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/recipe-calculator/recipe-calculator.php
- > /wp-content/plugins/recipe-calculator/public/rcal.php
- > /wp-content/plugins/recipe-calculator/includes/metaboxes.php
- > /wp-content/plugins/recipe-calculator/includes/functions.php
- 32× 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 add_action() in wp-content/plugins/recipe-calculator/includes/customizer.php:68
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/recipe-calculator/includes/CMB2/includes/CMB2_hookup.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recipe-calculator/includes/CMB2/init.php:120
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recipe-calculator/includes/CMB2/includes/helper-functions.php:116
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/recipe-calculator/includes/CMB2/includes/types/CMB2_Type_Checkbox.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/recipe-calculator/includes/CMB2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/recipe-calculator/includes/CMB2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/recipe-calculator/includes/CMB2/includes/types/CMB2_Type_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/recipe-calculator/includes/CMB2/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/recipe-calculator/includes/CMB2/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
recipe-calculator/recipe-calculator.php 92% from 13 tests
The main PHP script in "Recipe Calculator" version 1.0.2 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin43,899 lines of code in 211 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 121 | 13,816 | 17,920 | 31,625 |
PHP | 50 | 1,443 | 3,514 | 5,007 |
CSS | 17 | 1,006 | 1,038 | 4,631 |
Sass | 13 | 238 | 25 | 1,149 |
JavaScript | 8 | 271 | 262 | 1,075 |
Markdown | 2 | 139 | 0 | 412 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 14.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 144.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 6 | 10.34% |
▷ Concrete classes | 52 | 89.66% |
▷ Final classes | 0 | 0.00% |
Methods | 326 | |
▷ Static methods | 44 | 13.50% |
▷ Public methods | 278 | 85.28% |
▷ Protected methods | 45 | 13.80% |
▷ Private methods | 3 | 0.92% |
Functions | 43 | |
▷ Named functions | 43 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/CMB2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/CMB2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/CMB2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
includes/CMB2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
includes/CMB2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |