Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼13.63ms] Passed 4 tests
A check of server-side resources used by The SGDiet TDEE Calculator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.63 ▼6.29 |
Dashboard /wp-admin | 3.35 ▲0.05 | 47.82 ▼6.51 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 52.53 ▼19.04 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 92.61 ▼22.66 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.35 ▼0.83 |
TheSGDiet TDEE Settings /wp-admin/options-general.php?page=thesgdiet-tdee-settings | 3.24 | 38.59 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for The SGDiet TDEE Calculator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲134 | 13.61 ▼1.03 | 4.76 ▲2.72 | 40.20 ▼3.97 |
Dashboard /wp-admin | 2,214 ▲43 | 5.75 ▲0.84 | 96.63 ▼33.59 | 44.77 ▼22.24 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.04 ▲0.00 | 39.45 ▲2.64 | 37.77 ▼4.33 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 18.63 ▼4.69 | 631.71 ▼47.22 | 52.07 ▼7.25 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.24 ▲0.06 | 95.68 ▼6.06 | 44.70 ▼2.58 |
TheSGDiet TDEE Settings /wp-admin/options-general.php?page=thesgdiet-tdee-settings | 832 | 2.05 | 25.37 | 28.52 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sgdiet-tdee-calculator/public/partials/sgdiet-calculator-public-display.php
- > /wp-content/plugins/sgdiet-tdee-calculator/admin/partials/sgdiet-calculator-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: nutrition, recipes, food plan, calories, tdee
sgdiet-tdee-calculator/sgdiet-calculator.php 85% from 13 tests
This is the main PHP file of "The SGDiet TDEE Calculator" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("sgdiet-tdee-calculator.php" instead of "sgdiet-calculator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,062 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 347 | 575 | 1,056 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 2.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 25 | |
▷ Named functions | 25 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin