Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.34ms] Passed 4 tests
An overview of server-side resources used by BMI Calculator Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 33.19 ▼7.43 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.11 ▼14.08 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.73 ▼1.03 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.94 ▼2.82 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.38 ▲0.97 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for BMI Calculator Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲137 | 13.60 ▼0.78 | 8.70 ▲6.99 | 37.30 ▼4.00 |
Dashboard /wp-admin | 2,206 ▲18 | 5.90 ▲1.04 | 107.41 ▲1.81 | 42.03 ▲2.41 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.04 ▲0.04 | 38.95 ▲2.02 | 35.63 ▲2.94 |
Add New Post /wp-admin/post-new.php | 1,542 ▲22 | 18.33 ▼4.86 | 589.94 ▼57.97 | 50.12 ▼8.41 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.18 ▲0.01 | 95.57 ▼4.09 | 41.39 ▼3.00 |
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 were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Material design theme), #2 (Clean (Bootstrap) theme), #3 (Default theme), #4 (Material design theme with input)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== bmi-calculator-shortcode ===
)
bmi-calculator-shortcode/bmi-calculator-shortcode.php Passed 13 tests
The primary PHP file in "BMI Calculator Plugin" version 1.0.3 is used by WordPress to initiate all plugin functionality
129 characters long description:
A simple stylable BMI calculator that you can add anywhere. Use shortcode [bmi]. Visit the plugin download page for more options.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin446 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 50 | 9 | 310 |
PHP | 2 | 14 | 12 | 90 |
JavaScript | 1 | 7 | 0 | 46 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.71 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 3 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 25.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.19MB with 0.15MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 50.52KB | 9.90KB | ▼ 80.40% |
screenshot-1.png | 40.36KB | 8.04KB | ▼ 80.08% |
screenshot-2.png | 45.69KB | 11.06KB | ▼ 75.79% |
screenshot-3.png | 54.55KB | 13.40KB | ▼ 75.44% |