Benchmarks
Plugin footprint 83% 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.06MB] [CPU: ▼5.36ms] Passed 4 tests
This is a short check of server-side resources used by Calculate BMR and BMI
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.68 ▼1.00 |
Dashboard /wp-admin | 3.36 ▲0.05 | 48.99 ▼5.81 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 45.44 ▼0.94 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 81.40 ▼9.59 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 32.68 ▼5.05 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Calculate BMR and BMI
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲131 | 13.39 ▼1.02 | 8.10 ▲6.58 | 45.81 ▲6.20 |
Dashboard /wp-admin | 2,211 ▲37 | 5.51 ▼0.20 | 82.45 ▼14.06 | 39.26 ▼2.83 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.98 ▲0.01 | 35.06 ▼2.48 | 35.55 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,540 ▲3 | 22.85 ▲4.70 | 654.38 ▲30.59 | 54.30 ▼12.76 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.19 ▼0.02 | 96.19 ▼7.98 | 41.27 ▼1.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/calculate-bmr/admin/partials/calculate-bmr-admin-display.php
- > /wp-content/plugins/calculate-bmr/public/partials/calculate-bmr-public-display.php
- > /wp-content/plugins/calculate-bmr/public/partials/calculate-bmi-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: calculate bmi, bmi calculator plugin, bmi calculator, my bmr calculator, calculate bmr
calculate-bmr/calculate-bmr.php Passed 13 tests
"Calculate BMR and BMI" version 1.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
45 characters long description:
This is a Plugin for Calculating BMR And BMI.
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 detected583 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 36 | 12 | 276 |
PHP | 13 | 142 | 551 | 248 |
JavaScript | 4 | 31 | 42 | 59 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 19 | 79.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.83% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/screenshot.PNG | 67.01KB | 14.39KB | ▼ 78.52% |