Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.26ms] Passed 4 tests
Analyzing server-side resources used by Healthy BMI Calculator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.81 ▼6.39 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.26 ▼2.73 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.58 ▲0.94 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.54 ▼16.84 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.93 ▲0.98 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_sm_health_bmi_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Healthy BMI Calculator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.38 ▼0.14 | 1.61 ▼0.02 | 43.83 ▼0.83 |
Dashboard /wp-admin | 2,195 ▲18 | 5.57 ▼0.09 | 85.10 ▼2.62 | 40.39 ▼3.75 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▼0.01 | 41.36 ▲1.07 | 37.07 ▼1.43 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.02 ▲4.77 | 631.83 ▲3.92 | 51.78 ▼13.88 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.17 ▲0.00 | 98.36 ▼5.33 | 40.72 ▼4.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- db_upgraded
- widget_sm_health_bmi_widget
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/healthy-bmi-calculator/healthy-bmi-calculator.php:80
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: widget, health, shortcode
healthy-bmi-calculator/healthy-bmi-calculator.php Passed 13 tests
This is the main PHP file of "Healthy BMI Calculator" version 1.2.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
101 characters long description:
Provides a customizable BMI Calculator as a widget or shortcode. Can only be one calculator per page.
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
Everything looks great! No dangerous files found in this plugin19 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 0 | 0 | 18 |
PHP | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 2 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 3.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 | 4 | |
▷ Named functions | 4 | 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 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