84% total-support-widget

Code Review | Total Support Widget

WordPress plugin Total Support Widget scored84%from 54 tests.

About plugin

  • Plugin page: total-support-widget
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 3, 2016
  • Latest release: May 16, 2016
  • Number of updates: 25
  • Update frequency: every 1.8 days
  • Top authors: adamx8 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,099 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1439.14 ▲0.35
Dashboard /wp-admin3.51 ▲0.1649.76 ▼9.03
Posts /wp-admin/edit.php3.57 ▲0.2153.64 ▲7.57
Add New Post /wp-admin/post-new.php6.04 ▲0.1589.47 ▼20.16
Media Library /wp-admin/upload.php3.36 ▲0.1334.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

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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,996 ▲25015.15 ▲0.502.22 ▲0.5040.37 ▼4.55
Dashboard /wp-admin2,371 ▲1856.70 ▲1.55122.33 ▲7.9838.41 ▼9.01
Posts /wp-admin/edit.php2,271 ▲1823.60 ▲1.5557.24 ▲19.6134.90 ▲1.93
Add New Post /wp-admin/post-new.php1,534 ▼623.32 ▼0.00586.45 ▼35.0634.71 ▼33.88
Media Library /wp-admin/upload.php1,416 ▲254.55 ▲0.3185.54 ▼12.8441.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

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


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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.33
Average class complexity20.60
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
▷ Static methods614.29%
▷ Public methods3378.57%
▷ Protected methods614.29%
▷ Private methods37.14%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/paypal-donate-button.png10.78KB3.57KB▼ 66.84%
images/mail.png16.03KB6.22KB▼ 61.21%