Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼1.29ms] Passed 4 tests
Server-side resources used by WP Unit Converter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 43.37 ▼0.86 |
Dashboard /wp-admin | 3.41 ▲0.10 | 50.73 ▼1.22 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 53.01 ▲2.45 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 104.79 ▼0.90 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.31 ▼2.17 |
WP Unit Converter /wp-admin/options-general.php?page=wpuc_options_submenu_page | 3.30 | 36.11 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
widget_wp_unit_converter_widget |
wpuc_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP Unit Converter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲124 | 15.33 ▲0.90 | 25.61 ▲23.79 | 44.95 ▲1.87 |
Dashboard /wp-admin | 2,203 ▲23 | 5.67 ▼0.00 | 85.98 ▼11.59 | 37.83 ▼3.60 |
Posts /wp-admin/edit.php | 2,111 ▲14 | 2.00 ▲0.06 | 40.35 ▲3.51 | 34.81 ▼0.93 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.33 ▲0.07 | 606.25 ▼34.29 | 50.36 ▼16.72 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.13 ▼0.06 | 100.49 ▼3.40 | 42.78 ▲0.14 |
WP Unit Converter /wp-admin/options-general.php?page=wpuc_options_submenu_page | 916 | 1.94 | 24.30 | 31.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_wp_unit_converter_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-unit-converter/admin/partials/wp-unit-converter-admin-display.php
- > /wp-content/plugins/wp-unit-converter/public/partials/wp-unit-converter-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-unit-converter/admin/class-wp-unit-converter-widget.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2 in wp-unit-converter/assets to your readme.txt
wp-unit-converter/wp-unit-converter.php 92% from 13 tests
"WP Unit Converter" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin725 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 237 | 675 | 420 |
JavaScript | 3 | 37 | 131 | 115 |
JSON | 1 | 5 | 0 | 100 |
CSS | 2 | 25 | 14 | 90 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 3 | 7.89% |
▷ Public methods | 33 | 86.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.16% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/wpuc_horizontal_orientation.png | 7.98KB | 4.18KB | ▼ 47.57% |
admin/images/wpuc_vertical_orientation.png | 8.67KB | 4.58KB | ▼ 47.16% |