Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.97ms] Passed 4 tests
A check of server-side resources used by WP Restore and Enable Classic Widgets Plugin No Expiration
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 40.58 ▼0.77 |
Dashboard /wp-admin | 3.45 ▲0.15 | 46.33 ▼2.36 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 49.43 ▲2.59 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 94.34 ▼0.06 |
Media Library /wp-admin/upload.php | 3.38 ▲0.14 | 39.77 ▼0.68 |
More Useful Tools /wp-admin/tools.php?page=restorecw_new_more_plugins | 3.36 | 33.00 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
bill_show_warnings |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP Restore and Enable Classic Widgets Plugin No Expiration
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲32 | 13.59 ▼0.77 | 1.71 ▼0.30 | 39.71 ▼5.23 |
Dashboard /wp-admin | 2,219 ▲45 | 5.36 ▼0.31 | 87.79 ▼9.40 | 39.53 ▼5.22 |
Posts /wp-admin/edit.php | 2,130 ▲33 | 2.39 ▲0.45 | 43.82 ▲7.89 | 35.32 ▲1.92 |
Add New Post /wp-admin/post-new.php | 1,548 ▲17 | 23.46 ▲0.28 | 666.09 ▲14.91 | 62.92 ▲2.81 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.59 ▲0.20 | 98.16 ▼19.61 | 44.45 ▼3.29 |
More Useful Tools /wp-admin/tools.php?page=restorecw_new_more_plugins | 947 | 2.03 | 29.94 | 27.49 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- bill_show_warnings
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/restore-classic-widgets/restore_classic_widgets.php
- > /wp-content/plugins/restore-classic-widgets/includes/checkup/bill_class_diagnose.php
- > /wp-content/plugins/restore-classic-widgets/includes/checkup/class_bill_catch_errors.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 86% 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 your attention:
- Screenshots: Screenshot #1 (Classic Widgets Screen) image missing
restore-classic-widgets/restore_classic_widgets.php 77% from 13 tests
Analyzing the main PHP file in "WP Restore and Enable Classic Widgets Plugin No Expiration" version 3.5
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("restore-classic-widgets.php" instead of "restore_classic_widgets.php")
- Description: The description should be shorter than 140 characters (currently 160 characters long)
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
There were no executable files found in this plugin1,421 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 143 | 129 | 1,194 |
CSS | 1 | 6 | 0 | 95 |
JavaScript | 1 | 1 | 13 | 92 |
PO File | 1 | 10 | 10 | 40 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 16.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 17 | 89.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.53% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/checkup/bell.png | 1.07KB | 0.27KB | ▼ 74.45% |