Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼3.49ms] Passed 4 tests
A check of server-side resources used by fitness calculators plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 48.31 ▲7.72 |
Dashboard /wp-admin | 3.54 ▲0.23 | 50.04 ▲0.90 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 48.29 ▼4.09 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 89.50 ▼15.22 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 41.90 ▲4.45 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_fcpbfc_widget |
widget_recent-comments |
widget_theysaidso_widget |
widget_fcpprotein_widget |
can_compress_scripts |
widget_fcpwater_widget |
widget_recent-posts |
db_upgraded |
widget_fcpbmi_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for fitness calculators plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲149 | 13.54 ▼0.98 | 8.11 ▲6.58 | 37.58 ▼7.75 |
Dashboard /wp-admin | 2,230 ▲50 | 5.82 ▲0.22 | 85.02 ▼4.49 | 39.93 ▲1.68 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.29 ▲0.31 | 37.04 ▼4.02 | 35.21 ▼7.41 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 22.97 ▼0.32 | 695.19 ▲23.27 | 38.24 ▼15.23 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.34 ▲0.13 | 113.33 ▲7.46 | 45.45 ▼2.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 10 options
- widget_fcpbfc_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_fcpwater_widget
- widget_recent-comments
- db_upgraded
- widget_fcpprotein_widget
- widget_fcpbmi_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fitness-calculators/includes/js_css_register.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fitness-calculators/includes/fc-class-widgets.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fitness-calculators/includes/fc-class-short-code.php:727
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 your attention:
- Donate link: Please fix this invalid url: ""
- Screenshots: Screenshot #5 (screnshort-5.png shows Carb calculator.) image missing
fitness-calculators/fitness-calculators-plugin.php 92% from 13 tests
This is the main PHP file of "fitness calculators plugin" version 2.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("fitness-calculators.php" instead of "fitness-calculators-plugin.php")
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
There were no executable files found in this plugin3,312 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 114 | 64 | 1,855 |
PHP | 5 | 121 | 40 | 1,306 |
CSS | 1 | 9 | 2 | 151 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.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 | 28 | |
▷ Static methods | 5 | 17.86% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.86MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/FCP_proteinn_intake_calculator.png | 37.51KB | 12.04KB | ▼ 67.90% |
images/FCP_bmp_calculator.png | 30.17KB | 9.33KB | ▼ 69.08% |
screenshort-3.png | 181.15KB | 51.81KB | ▼ 71.40% |
images/FCP_water_intake_calculator.png | 39.32KB | 12.95KB | ▼ 67.06% |
screenshort-2.png | 184.80KB | 52.21KB | ▼ 71.75% |