Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/gmo-widget-custom/gmo-widget-custom.php+26
Methods with the same name as their class will not be constructors in a future version of PHP; gmoWidgetCustom has a deprecated constructor
Server metrics [RAM: ▼1.85MB] [CPU: ▼55.05ms] Passed 4 tests
A check of server-side resources used by Plugin Name: GMO Widget Custom
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 4.66 ▼34.03 |
Dashboard /wp-admin | 2.17 ▼1.18 | 6.66 ▼53.93 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 5.41 ▼40.88 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.72 | 5.71 ▼91.37 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 5.98 ▼26.56 |
Server storage [IO: ▲0.54MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_widget_custom |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Plugin Name: GMO Widget Custom: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.38 ▲0.05 | 1.69 ▲0.12 | 37.44 ▼3.76 |
Dashboard /wp-admin | 2,192 ▲18 | 5.51 ▼0.14 | 81.66 ▼7.16 | 37.26 ▼3.86 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.09 | 35.03 ▲1.47 | 35.49 ▼2.17 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 22.96 ▼0.25 | 672.20 ▼0.05 | 55.12 ▼8.29 |
Media Library /wp-admin/upload.php | 1,394 ▼0 | 4.15 ▼0.01 | 97.82 ▼3.68 | 41.87 ▼2.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/gmo-widget-custom/gmo-widget-custom.php+26
Methods with the same name as their class will not be constructors in a future version of PHP; gmoWidgetCustom has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_widget_custom
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/gmo-widget-custom/gmo-widget-custom.php
- > /wp-content/plugins/gmo-widget-custom/views/widget-admin.deprecated.php
- > /wp-content/plugins/gmo-widget-custom/views/widget.php
- > /wp-content/plugins/gmo-widget-custom/views/widget-admin.php
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 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== Plugin Name: GMO Widget Custom ===
) - Screenshots: Please add an image for screenshot #1 (button image)
gmo-widget-custom/gmo-widget-custom.php 92% from 13 tests
This is the main PHP file of "Plugin Name: GMO Widget Custom" version 1.2, 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:
- Domain Path: The domain path folder was not found ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin821 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 94 | 95 | 503 |
JavaScript | 3 | 55 | 57 | 226 |
PO File | 1 | 30 | 31 | 92 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 38.50 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 4.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 3 | 13.64% |
▷ Public methods | 17 | 77.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 22.73% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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
2 PNG files occupy 0.49MB with 0.35MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 346.40KB | 99.11KB | ▼ 71.39% |
screenshot-1.png | 156.79KB | 42.83KB | ▼ 72.69% |