Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.37MB] [CPU: ▼4.25ms] Passed 4 tests
Server-side resources used by Widget Display Conditions
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.32 | 48.61 ▲7.95 |
Dashboard /wp-admin | 3.70 ▲0.39 | 51.16 ▼3.24 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 55.25 ▲6.88 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 109.89 ▼19.71 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 38.32 ▼0.93 |
Updater /wp-admin/admin.php?page=wdc-updater | 3.53 | 34.68 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wdc_version |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Widget Display Conditions
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.46 ▲0.17 | 2.15 ▲0.46 | 41.75 ▲0.44 |
Dashboard /wp-admin | 2,206 ▲17 | 5.91 ▲0.99 | 109.28 ▼25.63 | 38.36 ▼10.49 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.03 | 42.10 ▲7.51 | 35.86 ▲3.44 |
Add New Post /wp-admin/post-new.php | 1,514 ▼22 | 17.91 ▼5.41 | 641.88 ▼2.72 | 50.87 ▼0.19 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▲0.01 | 102.38 ▼12.51 | 42.66 ▼0.88 |
Updater /wp-admin/admin.php?page=wdc-updater | 750 | 2.05 | 24.17 | 22.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
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
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Widget form), #2 (Widget Settings with available options)
widget-display-conditions/widget-display-conditions.php 92% from 13 tests
The primary PHP file in "Widget Display Conditions" version 0.2.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,665 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 514 | 897 | 1,629 |
JavaScript | 4 | 176 | 132 | 801 |
CSS | 2 | 11 | 4 | 235 |
PHP code Passed 2 tests
A short review 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.32 |
Average class complexity | 3.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 4 | 14.29% |
Methods | 110 | |
▷ Static methods | 16 | 14.55% |
▷ Public methods | 107 | 97.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.73% |
Functions | 41 | |
▷ Named functions | 41 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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.37MB with 0.26MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 52.44KB | 15.17KB | ▼ 71.06% |
screenshot-2.png | 100.09KB | 29.05KB | ▼ 70.97% |
screenshot-3.png | 222.06KB | 63.13KB | ▼ 71.57% |