Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.83ms] Passed 4 tests
A check of server-side resources used by WP Calorie Calculator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.04 ▲2.74 |
Dashboard /wp-admin | 3.46 ▲0.11 | 53.09 ▼11.41 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 51.00 ▲1.99 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 85.71 ▼0.64 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 38.55 ▲5.64 |
Calorie Calculator /wp-admin/admin.php?page=wp-calorie-calculator | 3.70 | 40.52 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
wpcc_pro_version_advertisement |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Calorie Calculator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲146 | 13.25 ▼1.44 | 1.90 ▲0.19 | 19.92 ▼18.62 |
Dashboard /wp-admin | 2,238 ▲47 | 4.84 ▼1.04 | 111.56 ▼4.09 | 42.94 ▼3.41 |
Posts /wp-admin/edit.php | 2,145 ▲53 | 1.92 ▼0.11 | 40.77 ▼1.04 | 106.16 ▲66.61 |
Add New Post /wp-admin/post-new.php | 1,558 ▲44 | 23.35 ▲5.83 | 684.21 ▲44.07 | 65.83 ▲12.29 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.19 ▼0.03 | 99.87 ▲4.18 | 44.30 ▲2.75 |
Calorie Calculator /wp-admin/admin.php?page=wp-calorie-calculator | 5,535 | 3.24 | 128.52 | 48.98 |
Go Pro /wp-admin/admin.php?page=#wpcc-go-pro | 28 | 0.44 | 0.06 | 3.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- wpcc_pro_version_advertisement
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Calorie_Calculator' not found in wp-content/plugins/wp-calorie-calculator/public/partials/wp-calorie-calculator-public-display.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Calorie_Calculator' not found in wp-content/plugins/wp-calorie-calculator/admin/partials/wp-calorie-calculator-admin-display.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=#wpcc-go-pro
- > Network (severe)
wp-admin/admin.php?page=#wpcc-go-pro - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: health, gym, macros, fitness, nutrition...
wp-calorie-calculator/wp-calorie-calculator.php 92% from 13 tests
The entry point to "WP Calorie Calculator" version 4.0.12 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 177 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin3,600 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 260 | 541 | 1,801 |
PO File | 3 | 730 | 1,169 | 1,680 |
SVG | 14 | 0 | 0 | 115 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 7.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 1 | 2.56% |
▷ Public methods | 34 | 87.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.82% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/banner-sport.png | 15.95KB | 17.22KB | 0.00% |