Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.57MB] [CPU: ▼4.23ms] Passed 4 tests
Analyzing server-side resources used by Widgets Reloaded
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 43.34 ▼2.42 |
Dashboard /wp-admin | 3.87 ▲0.56 | 47.82 ▲3.73 |
Posts /wp-admin/edit.php | 3.98 ▲0.62 | 46.58 ▼4.65 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.56 | 88.15 ▼10.25 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 36.92 ▲0.40 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 14 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_hybrid-archives |
can_compress_scripts |
db_upgraded |
widget_hybrid-categories |
widget_recent-comments |
widget_hybrid-calendar |
widget_hybrid-pages |
widget_hybrid-nav-menu |
widget_reloaded-posts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Widgets Reloaded
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.68 ▼0.88 | 2.20 ▼0.06 | 38.46 ▼9.41 |
Dashboard /wp-admin | 2,209 ▲18 | 5.08 ▲0.15 | 98.38 ▼5.64 | 39.72 ▼4.33 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.03 ▲0.02 | 34.87 ▼6.82 | 35.93 ▲0.42 |
Add New Post /wp-admin/post-new.php | 1,534 ▼4 | 23.25 ▲0.17 | 719.25 ▲64.56 | 61.68 ▼2.35 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.02 | 99.86 ▼12.09 | 42.44 ▼3.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 14 options in the database
- widget_hybrid-categories
- widget_hybrid-pages
- widget_reloaded-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_hybrid-archives
- widget_hybrid-authors
- widget_hybrid-tags
- ...
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widgets-reloaded/inc/widgets/class-widget.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function Widgets_Reloaded\\add_action() in wp-content/plugins/widgets-reloaded/inc/functions-core.php:16
- > PHP Fatal error
Uncaught Error: Class 'Widgets_Reloaded\\Widgets\\Widget' not found in wp-content/plugins/widgets-reloaded/inc/widgets/class-posts.php:21
- > PHP Fatal error
Uncaught Error: Class 'Widgets_Reloaded\\Widgets\\Widget' not found in wp-content/plugins/widgets-reloaded/inc/widgets/class-archives.php:22
- > PHP Fatal error
Uncaught Error: Class 'Widgets_Reloaded\\Widgets\\Widget' not found in wp-content/plugins/widgets-reloaded/inc/widgets/class-pages.php:23
- > PHP Fatal error
Uncaught Error: Class 'Widgets_Reloaded\\Widgets\\Widget' not found in wp-content/plugins/widgets-reloaded/inc/widgets/class-tags.php:23
- > PHP Fatal error
Uncaught Error: Class 'Widgets_Reloaded\\Widgets\\Widget' not found in wp-content/plugins/widgets-reloaded/inc/widgets/class-bookmarks.php:23
- > PHP Fatal error
Uncaught Error: Class 'Widgets_Reloaded\\Widgets\\Widget' not found in wp-content/plugins/widgets-reloaded/inc/widgets/class-calendar.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function Widgets_Reloaded\\trailingslashit() in wp-content/plugins/widgets-reloaded/widgets-reloaded.php:76
- > PHP Fatal error
Uncaught Error: Class 'Widgets_Reloaded\\Widgets\\Widget' not found in wp-content/plugins/widgets-reloaded/inc/widgets/class-authors.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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: Please add images for these screenshots: #1 (Archives widget), #2 (Authors widget), #3 (Bookmarks widget), #4 (Calendar widget), #5 (Categories widget), #6 (Menu widget), #7 (Pages widget), #8 (Posts widget), #9 (Tags widget)
widgets-reloaded/widgets-reloaded.php Passed 13 tests
The principal PHP file in "Widgets Reloaded" v. 1.0.0 is loaded by WordPress automatically on each request
115 characters long description:
Adds many advanced widgets to the site and gives users much more flexibility than the core WordPress widgets offer.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,347 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 704 | 872 | 1,922 |
Markdown | 4 | 112 | 0 | 392 |
CSS | 2 | 8 | 3 | 33 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 14.18 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 1 | 9.09% |
▷ Concrete classes | 10 | 90.91% |
▷ Final classes | 1 | 10.00% |
Methods | 45 | |
▷ Static methods | 1 | 2.22% |
▷ Public methods | 42 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.67% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
9 PNG files occupy 0.25MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-8.png | 17.70KB | 6.50KB | ▼ 63.25% |
screenshot-2.png | 25.85KB | 9.34KB | ▼ 63.85% |
screenshot-1.png | 18.10KB | 6.27KB | ▼ 65.36% |
screenshot-6.png | 25.50KB | 8.76KB | ▼ 65.66% |
screenshot-3.png | 47.11KB | 15.82KB | ▼ 66.42% |