Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼7.03ms] Passed 4 tests
An overview of server-side resources used by Total Support Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 39.14 ▲0.35 |
Dashboard /wp-admin | 3.51 ▲0.16 | 49.76 ▼9.03 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 53.64 ▲7.57 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 89.47 ▼20.16 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 34.60 ▲0.72 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_total-support-widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Total Support Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,996 ▲250 | 15.15 ▲0.50 | 2.22 ▲0.50 | 40.37 ▼4.55 |
Dashboard /wp-admin | 2,371 ▲185 | 6.70 ▲1.55 | 122.33 ▲7.98 | 38.41 ▼9.01 |
Posts /wp-admin/edit.php | 2,271 ▲182 | 3.60 ▲1.55 | 57.24 ▲19.61 | 34.90 ▲1.93 |
Add New Post /wp-admin/post-new.php | 1,534 ▼6 | 23.32 ▼0.00 | 586.45 ▼35.06 | 34.71 ▼33.88 |
Media Library /wp-admin/upload.php | 1,416 ▲25 | 4.55 ▲0.31 | 85.54 ▼12.84 | 41.80 ▼0.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_total-support-widget
- widget_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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/total-support-widget/PSW/Widget/PodcastSupportUs.php:2
- > PHP Fatal error
Uncaught Error: Class 'PSW_Form' not found in wp-content/plugins/total-support-widget/PSW/Form/PodcastSupportUs.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/total-support-widget/PSW/Widget/PodcastSupportUs.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Requires at least: Version not formatted correctly
total-support-widget/total-support-widget.php Passed 13 tests
The principal PHP file in "Total Support Widget" v. 1.0.7 is loaded by WordPress automatically on each request
101 characters long description:
The Total Support Widget gives you Patreon, 20 social & support links, and Sendy or Mailchimp signup.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin4,381 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 37 | 226 | 2,765 |
PHP | 6 | 131 | 149 | 851 |
SVG | 1 | 0 | 0 | 655 |
JavaScript | 3 | 10 | 0 | 110 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 20.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 6 | 14.29% |
▷ Public methods | 33 | 78.57% |
▷ Protected methods | 6 | 14.29% |
▷ Private methods | 3 | 7.14% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/paypal-donate-button.png | 10.78KB | 3.57KB | ▼ 66.84% |
images/mail.png | 16.03KB | 6.22KB | ▼ 61.21% |