Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.92ms] Passed 4 tests
This is a short check of server-side resources used by Simple BMI Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.00 ▼0.64 |
Dashboard /wp-admin | 3.42 ▲0.11 | 46.88 ▲2.33 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 45.33 ▼4.50 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 82.21 ▼23.03 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.76 ▲0.51 |
Simple BMI Form /wp-admin/options-general.php?page=simple-bmi-form | 3.31 | 35.36 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 13 new options
New WordPress options |
---|
sbf_background_colour |
sbf_border_width |
widget_recent-comments |
can_compress_scripts |
sbf_border_colour |
theysaidso_admin_options |
widget_recent-posts |
sbf_font_size |
sbf_show_wiki_link |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple BMI Form
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 13.89 ▼0.42 | 5.36 ▲3.56 | 43.55 ▼1.06 |
Dashboard /wp-admin | 2,229 ▲44 | 5.17 ▼0.64 | 115.83 ▲16.20 | 42.02 ▲0.66 |
Posts /wp-admin/edit.php | 2,114 ▲22 | 2.32 ▲0.26 | 35.66 ▼4.56 | 31.28 ▼5.05 |
Add New Post /wp-admin/post-new.php | 1,531 ▲17 | 23.64 ▲6.12 | 662.26 ▲58.93 | 37.40 ▼18.30 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.40 ▲0.21 | 97.61 ▲0.91 | 44.47 ▼0.78 |
Simple BMI Form /wp-admin/options-general.php?page=simple-bmi-form | 1,118 | 2.32 | 50.56 | 28.11 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 13 options
- sbf_background_colour
- sbf_default_units
- widget_theysaidso_widget
- sbf_border_width
- widget_simple_bmi_form
- widget_recent-posts
- sbf_border_colour
- sbf_font_size
- can_compress_scripts
- db_upgraded
- ...
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/simple-bmi-form/includes/form.php
- > /wp-content/plugins/simple-bmi-form/includes/settings.php
- > /wp-content/plugins/simple-bmi-form/simple-bmi-form.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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 to be fixed:
- Screenshots: Screenshot #2 (Simple BMI Form settings) image not found
simple-bmi-form/simple-bmi-form.php Passed 13 tests
The entry point to "Simple BMI Form" version 1.0.12 is a PHP file that has certain tags in its header comment area
80 characters long description:
Simple BMI calculator form. The visitor may select Imperial, US or Metric units.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected707 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 65 | 64 | 346 |
JavaScript | 2 | 12 | 12 | 174 |
PO File | 1 | 73 | 90 | 149 |
CSS | 1 | 2 | 2 | 38 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG files were detected