Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.95ms] Passed 4 tests
A check of server-side resources used by KG to LBS Converter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.14 ▲0.51 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.05 ▼1.99 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 52.25 ▲3.77 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.78 ▼20.42 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.70 ▲2.12 |
KG to LBS Converter /wp-admin/options-general.php?page=kg-to-lbs-converter | 3.27 | 36.83 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
klc_welcome |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by KG to LBS Converter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.21 ▼1.58 | 1.78 ▼0.37 | 45.22 ▲5.72 |
Dashboard /wp-admin | 2,210 ▲33 | 4.84 ▼1.10 | 115.29 ▲0.80 | 44.09 ▼0.37 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▼0.01 | 40.65 ▼2.57 | 36.74 ▲1.29 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.62 ▼5.51 | 613.35 ▼6.24 | 53.44 ▼9.39 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.24 ▲0.03 | 101.00 ▼2.95 | 43.46 ▼3.11 |
KG to LBS Converter /wp-admin/options-general.php?page=kg-to-lbs-converter | 1,440 | 2.61 | 71.84 | 39.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- klc_welcome
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/kg-to-lbs-converter/kg-to-lbs-converter.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kg-to-lbs-converter/templates/admin-panel.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kg-to-lbs-converter/templates/kg-to-lbs-converter-template.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 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: weight metric to imperial, kg to lbs converter, unit converter
kg-to-lbs-converter/kg-to-lbs-converter.php 92% from 13 tests
"KG to LBS Converter" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.9" instead of "5.2")
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
Success! There were no dangerous files found in this plugin597 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 109 | 72 | 320 |
CSS | 2 | 26 | 6 | 149 |
JavaScript | 2 | 38 | 8 | 91 |
Markdown | 1 | 17 | 0 | 37 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.59MB with 0.35MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 254.70KB | 68.56KB | ▼ 73.08% |
assets/screenshot-2.png | 258.38KB | 69.91KB | ▼ 72.94% |
assets/screenshot-4.png | 49.28KB | 27.21KB | ▼ 44.79% |
assets/screenshot-3.png | 46.70KB | 25.81KB | ▼ 44.74% |