Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.73ms] Passed 4 tests
This is a short check of server-side resources used by JKL Unit Converter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.24 ▼1.04 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.65 ▲1.18 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 48.15 ▼1.51 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 81.86 ▼25.56 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.55 ▲2.04 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_jkl_unit_converter_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for JKL Unit Converter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.48 ▼0.11 | 1.96 ▼0.13 | 40.64 ▼3.34 |
Dashboard /wp-admin | 2,203 ▲12 | 5.86 ▲0.97 | 101.02 ▼3.04 | 37.67 ▼6.56 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.06 | 33.90 ▼5.31 | 35.99 ▲3.50 |
Add New Post /wp-admin/post-new.php | 1,528 ▼5 | 18.32 ▼4.69 | 588.76 ▼45.08 | 48.81 ▲2.88 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.19 ▼0.04 | 97.27 ▼2.95 | 41.03 ▼0.58 |
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
- theysaidso_admin_options
- widget_recent-posts
- widget_jkl_unit_converter_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/jkl-unit-converter/inc/view-jkl-unit-converter.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 16 tag instead of maximum 10
jkl-unit-converter/jkl-unit-converter.php Passed 13 tests
"JKL Unit Converter" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
111 characters long description:
A simple Unit Converter widget that allows you to between various units. (Inspired by Google's Unit Converter.)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,555 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 192 | 545 | 794 |
JavaScript | 3 | 64 | 42 | 436 |
CSS | 1 | 4 | 72 | 234 |
Markdown | 1 | 42 | 0 | 91 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 61.54% |
▷ Protected methods | 5 | 38.46% |
▷ Private methods | 0 | 0.00% |
Functions | 43 | |
▷ Named functions | 42 | 97.67% |
▷ Anonymous functions | 1 | 2.33% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/up-down-arrow.png | 0.11KB | 0.11KB | ▼ 2.61% |