Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼10.44ms] Passed 4 tests
Server-side resources used by Human Bmi Bmr Calculation
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.25 ▼0.58 |
Dashboard /wp-admin | 3.33 ▼0.02 | 47.25 ▼11.36 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 44.57 ▼10.03 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 80.74 ▼19.78 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.89 ▲0.13 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_bmi_bmr_result |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Human Bmi Bmr Calculation: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 14.74 ▲0.38 | 2.06 ▲0.26 | 44.34 ▲0.58 |
Dashboard /wp-admin | 2,222 ▲31 | 4.86 ▼0.16 | 116.13 ▲16.17 | 46.06 ▲2.31 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.04 ▲0.01 | 34.50 ▼2.10 | 34.13 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,546 ▲27 | 23.20 ▲0.00 | 635.71 ▼47.14 | 50.21 ▼0.91 |
Media Library /wp-admin/upload.php | 1,404 ▲22 | 4.23 ▲0.01 | 95.70 ▼3.45 | 43.53 ▼0.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- 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
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
Almost there! Just fix the following items
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/human-bmi-bmr-calculation/Includes/Dashboard/Menu/views/bmi-bmr-result-list-from-db-date-details-view.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/human-bmi-bmr-calculation/Includes/Dashboard/Menu/views/bmi-bmr-result-list-from-db.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_author_meta() in wp-content/plugins/human-bmi-bmr-calculation/Includes/FrontEnd/ShortCode/Bmi_Bmr/views/bmi-bmr-form.php:92
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/human-bmi-bmr-calculation/Includes/FrontEnd/ShortCode/Bmi_Bmr/views/bmi-bmr-form.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/human-bmi-bmr-calculation/Includes/Dashboard/Menu/views/bmi-bmr-result-list-from-db.php on line 6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/human-bmi-bmr-calculation/Includes/Dashboard/Menu/views/bmi-bmr-result-list-from-db.php on line 6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/human-bmi-bmr-calculation/Includes/Dashboard/Menu/views/bmi-bmr-result-list-from-db-date-details-view.php on line 5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/human-bmi-bmr-calculation/Includes/Dashboard/Menu/views/bmi-bmr-result-list-from-db-date-details-view.php on line 5
- > 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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Donate link: Invalid URI found ("#")
human-bmi-bmr-calculation/human-bmi-bmr-calculation.php 92% from 13 tests
The principal PHP file in "Human Bmi Bmr Calculation" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin822 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 64 | 224 | 759 |
CSS | 1 | 16 | 1 | 63 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 1 | 5.00% |
Methods | 39 | |
▷ Static methods | 1 | 2.56% |
▷ Public methods | 38 | 97.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.56% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/frontEnd/img/tick_mark.png | 8.61KB | 4.20KB | ▼ 51.24% |