Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼260.71ms] Passed 4 tests
Analyzing server-side resources used by BMI / IMC Calculator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 32.05 ▲11.66 |
Dashboard /wp-admin | 3.14 ▲0.09 | 43.87 ▲2.75 |
Posts /wp-admin/edit.php | 3.19 ▲0.08 | 43.65 ▼0.55 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 94.03 ▼1,038.32 |
Media Library /wp-admin/upload.php | 3.08 ▲0.07 | 31.67 ▼6.71 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 2 new options
New WordPress options |
---|
myplugin_version |
widget_imc_calculator_wydget |
Browser metrics Passed 4 tests
Checking browser requirements for BMI / IMC Calculator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,673 ▲67 | 16.22 ▲0.29 | 8.99 ▲2.02 | 47.06 ▲5.05 |
Dashboard /wp-admin | 2,927 ▲74 | 5.88 ▲0.03 | 140.23 ▲8.65 | 99.68 ▼1.66 |
Posts /wp-admin/edit.php | 2,703 ▼3 | 2.69 ▼0.00 | 69.43 ▲0.03 | 91.23 ▲1.13 |
Add New Post /wp-admin/post-new.php | 1,653 ▼198 | 18.82 ▲1.45 | 360.24 ▼11.40 | 111.59 ▲4.83 |
Media Library /wp-admin/upload.php | 1,772 ▼0 | 5.02 ▲0.02 | 153.46 ▼5.84 | 112.49 ▲2.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 2 options in the database
- myplugin_version
- widget_imc_calculator_wydget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/bmi-imc-calculator/esw_imc_calculator.php:13
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: imc, calculator, bmi, health, weight
bmi-imc-calculator/esw_imc_calculator.php 92% from 13 tests
"BMI / IMC Calculator" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bmi-imc-calculator.php" instead of "esw_imc_calculator.php")
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 plugin978 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 55 | 52 | 382 |
PHP | 1 | 62 | 39 | 281 |
CSS | 8 | 35 | 49 | 217 |
PO File | 1 | 33 | 64 | 85 |
SVG | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/header_background_1.png | 21.31KB | 7.61KB | ▼ 64.31% |