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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▲0.83ms] Passed 4 tests
Analyzing server-side resources used by CPO Widgets
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 44.17 ▲0.60 |
Dashboard /wp-admin | 3.49 ▲0.19 | 52.45 ▼0.91 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 55.24 ▲5.05 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 101.45 ▲0.58 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 42.19 ▲3.05 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 12 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_ctwg-twitter-stream |
widget_ctwg-author |
widget_ctwg-flickr |
widget_recent-comments |
widget_ctwg-social |
db_upgraded |
widget_theysaidso_widget |
widget_ctwg-recent-posts |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for CPO Widgets
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.23 ▼0.03 | 1.73 ▼0.01 | 40.82 ▼5.19 |
Dashboard /wp-admin | 2,195 ▲18 | 5.68 ▲0.08 | 91.86 ▼1.80 | 40.32 ▼2.73 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.03 | 39.45 ▼6.01 | 35.72 ▲1.14 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.04 ▼0.08 | 674.35 ▲15.19 | 59.26 ▲7.05 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.12 ▼0.06 | 97.75 ▼9.88 | 40.92 ▼6.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 12 options in the database
- widget_ctwg-flickr
- widget_ctwg-social
- db_upgraded
- widget_ctwg-twitter-stream
- widget_ctwg-author
- widget_ctwg-advert
- can_compress_scripts
- widget_recent-posts
- widget_ctwg-recent-posts
- theysaidso_admin_options
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Please take a closer look at the following
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cpo-widgets/widgets/widget-recent.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cpo-widgets/cpo-widgets.php:37
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cpo-widgets/widgets/widget-tweets.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cpo-widgets/widgets/widget-flickr.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cpo-widgets/widgets/widget-social.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cpo-widgets/widgets/widget-author.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cpo-widgets/widgets/widget-advert.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: banner, sidebar, author, widget, recent...
cpo-widgets/cpo-widgets.php 92% from 13 tests
The main file in "CPO Widgets" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 250 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,334 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 219 | 346 | 1,248 |
CSS | 1 | 15 | 13 | 64 |
SVG | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for 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.19 |
Average class complexity | 9.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 2 | 11.11% |
▷ Concrete classes | 16 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 10 | 9.90% |
▷ Public methods | 90 | 89.11% |
▷ Protected methods | 2 | 1.98% |
▷ Private methods | 9 | 8.91% |
Functions | 7 | |
▷ Named functions | 7 | 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
No PNG images were found in this plugin