84% adsauce-service-widget-customizer

Code Review | Ads-Sponsors-Donations Manager

WordPress plugin Ads-Sponsors-Donations Manager scored84%from 54 tests.

About plugin

  • Plugin page: adsauce-service-w...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.3
  • WordPress version: 6.3.1
  • First release: Mar 15, 2016
  • Latest release: Jul 20, 2016
  • Number of updates: 17
  • Update frequency: every 7.6 days
  • Top authors: adsauce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,809 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.66ms] Passed 4 tests

Server-side resources used by Ads-Sponsors-Donations Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1043.53 ▼2.99
Dashboard /wp-admin3.39 ▲0.0948.99 ▼3.71
Posts /wp-admin/edit.php3.51 ▲0.1547.91 ▼2.80
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.11 ▼13.15
Media Library /wp-admin/upload.php3.32 ▲0.0939.85 ▲3.64

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Ads-Sponsors-Donations Manager: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.28 ▼0.012.09 ▲0.5044.85 ▼0.41
Dashboard /wp-admin2,195 ▲215.61 ▲0.0287.87 ▼2.6941.42 ▲3.31
Posts /wp-admin/edit.php2,097 ▼61.97 ▼0.0734.84 ▼6.9634.09 ▼3.33
Add New Post /wp-admin/post-new.php1,526 ▼023.37 ▲0.31659.63 ▼32.9159.29 ▲4.00
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0299.36 ▼14.0945.36 ▼1.73

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_adsauce_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/adsauce-service-widget-customizer/AdSaucePlugin.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: ads, adsauce, marketing, advertizing

adsauce-service-widget-customizer/AdSaucePlugin.php 85% from 13 tests

The primary PHP file in "Ads-Sponsors-Donations Manager" version 1.1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("adsauce-service-widget-customizer.php" instead of "AdSaucePlugin.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 350 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin898 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity7.50
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions15100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin