Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.39ms] Passed 4 tests
A check of server-side resources used by YAWP Utils
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.73 ▲2.77 |
Dashboard /wp-admin | 3.36 ▲0.05 | 48.60 ▼2.59 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.28 ▲2.98 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.73 ▼5.34 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.18 ▼0.39 |
YAWP Set Email /wp-admin/options-general.php?page=yawp-utils/yawp-utils.php.mail | 3.22 | 32.91 |
YAWP Find/Replace /wp-admin/options-general.php?page=yawp-utils/yawp-utils.php.replace | 3.22 | 32.20 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by YAWP Utils
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 14.60 ▲0.22 | 1.78 ▲0.18 | 40.77 ▼2.60 |
Dashboard /wp-admin | 2,214 ▲29 | 5.79 ▲0.88 | 96.56 ▼21.46 | 36.88 ▼6.98 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.00 ▼0.01 | 38.07 ▲1.39 | 34.15 ▲4.09 |
Add New Post /wp-admin/post-new.php | 1,525 ▲6 | 23.28 ▲0.15 | 642.68 ▲29.46 | 49.11 ▼13.25 |
Media Library /wp-admin/upload.php | 1,399 ▲17 | 4.25 ▲0.05 | 98.43 ▼1.82 | 41.39 ▼1.59 |
YAWP Set Email /wp-admin/options-general.php?page=yawp-utils/yawp-utils.php.mail | 827 | 2.18 | 25.09 | 27.67 |
YAWP Find/Replace /wp-admin/options-general.php?page=yawp-utils/yawp-utils.php.replace | 953 | 2.03 | 24.74 | 55.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=yawp-utils/yawp-utils.php.replace
- > Notice in wp-content/plugins/yawp-utils/yawp.searchreplace.php+102
Undefined variable: yawp_utils_message
- > GET request to /wp-admin/options-general.php?page=yawp-utils/yawp-utils.php.mail
- > Notice in wp-content/plugins/yawp-utils/yawp.mail.php+68
Undefined index: yawptestemail
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/yawp-utils/yawp-utils.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/yawp-utils/yawp.mail.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/yawp-utils/yawp.shortcodes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/yawp-utils/yawp.searchreplace.php:7
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Set Email Address Settings in Admin panel.), #2 (Search/Replace Settings in Admin panel.)
yawp-utils/yawp-utils.php 92% from 13 tests
The principal PHP file in "YAWP Utils" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin290 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 20 | 44 | 215 |
JavaScript | 2 | 2 | 13 | 39 |
CSS | 2 | 0 | 0 | 36 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 3 | 21.43% |
▷ Anonymous functions | 11 | 78.57% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/yawp-logo.png | 27.34KB | 9.50KB | ▼ 65.27% |
assets/yawp-screenshot-1.png | 11.54KB | 6.89KB | ▼ 40.29% |
assets/yawp-screenshot-2.png | 20.66KB | 11.56KB | ▼ 44.03% |