Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.51ms] Passed 4 tests
Analyzing server-side resources used by Global Body Mass Index Calculator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.61 ▲0.63 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.21 ▼2.57 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.80 ▼3.46 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.77 ▲5.99 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.69 ▼0.64 |
GBMI Calculator /wp-admin/options-general.php?page=gbmi_calculator | 3.19 | 26.73 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 51 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
GBMI_Calc_Widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Global Body Mass Index Calculator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲166 | 13.52 ▼1.01 | 10.04 ▲8.48 | 42.77 ▲2.08 |
Dashboard /wp-admin | 2,205 ▲28 | 5.54 ▼0.14 | 94.48 ▲2.88 | 43.34 ▲3.81 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.01 ▲0.03 | 34.38 ▼2.70 | 33.64 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.16 ▲0.03 | 608.26 ▼32.23 | 55.75 ▲1.01 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▲0.01 | 96.85 ▼0.68 | 40.91 ▼1.32 |
GBMI Calculator /wp-admin/options-general.php?page=gbmi_calculator | 1,270 | 2.12 | 32.56 | 26.46 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=gbmi_calculator
- > Notice in wp-content/plugins/global-body-mass-index-calculator/gbmicalc.php+514
Undefined index: height
- > GET request to /wp-admin/options-general.php?page=gbmi_calculator
- > Notice in wp-content/plugins/global-body-mass-index-calculator/gbmicalc.php+516
Undefined index: width
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gbmi_calculator
- > Notice in wp-content/plugins/global-body-mass-index-calculator/gbmicalc.php+562
Undefined index: tabcolor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gbmi_calculator
- > Notice in wp-content/plugins/global-body-mass-index-calculator/gbmicalc.php+570
Undefined index: currtabcolor
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gbmi_calculator
- > Notice in wp-content/plugins/global-body-mass-index-calculator/gbmicalc.php+584
Undefined index: bgcolor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gbmi_calculator
- > Notice in wp-content/plugins/global-body-mass-index-calculator/gbmicalc.php+584
Undefined index: bgendcolor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gbmi_calculator
- > Notice in wp-content/plugins/global-body-mass-index-calculator/gbmicalc.php+577
Undefined index: textcolor
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/global-body-mass-index-calculator/gbmicalc.php:12
- > PHP Fatal error
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 93% 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
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (BMI Calculator settings in sidebar widget.), #2 (BMI Calculator settings page in admin panel.), #3 (Frontend view of adult without result.), #4 (Frontend view of adult with result.), #5 (Frontend view of child without result.), #6 (Frontend view of child with result.)
global-body-mass-index-calculator/gbmicalc.php 92% from 13 tests
The principal PHP file in "Global Body Mass Index Calculator" v. 1.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("global-body-mass-index-calculator.php" instead of "gbmicalc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,383 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 96 | 72 | 1,354 |
PHP | 1 | 83 | 15 | 545 |
CSS | 4 | 37 | 20 | 310 |
PO File | 2 | 69 | 158 | 174 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 8.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
28 PNG files occupy 0.14MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/plugins/colorpicker/images/custom_background.png | 1.87KB | 2.12KB | 0.00% |
js/plugins/colorpicker/images/colorpicker_rgb_r.png | 1.04KB | 0.77KB | ▼ 26.17% |
screenshot-4.png | 8.11KB | 5.42KB | ▼ 33.13% |
js/plugins/colorpicker/images/colorpicker_hsb_h.png | 0.99KB | 0.77KB | ▼ 21.94% |
screenshot-1.png | 16.19KB | 8.27KB | ▼ 48.89% |