84% adsauce-service-widget-customizer

Code Review | Ads-Sponsors-Donations Manager

WordPress plugin Ads-Sponsors-Donations Manager scored 84% 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: 5.9.2
  • 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,556 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼295.03ms] Passed 4 tests

Server-side resources used by Ads-Sponsors-Donations Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0354.37 ▲4.69
Dashboard /wp-admin3.44 ▲0.0331.60 ▼1.53
Posts /wp-admin/edit.php3.67 ▲0.0336.51 ▲0.90
Add New Post /wp-admin/post-new.php6.90 ▼0.0695.52 ▼1,180.17
Media Library /wp-admin/upload.php3.32 ▲0.0224.98 ▲0.70

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options
widget_adsauce_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Ads-Sponsors-Donations Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.84 ▲0.156.52 ▲0.692.17 ▼0.27
Dashboard /wp-admin2,888 ▲306.10 ▼0.10115.61 ▼19.32155.48 ▼8.37
Posts /wp-admin/edit.php2,688 ▼63.24 ▼0.0061.27 ▼0.89140.58 ▼1.17
Add New Post /wp-admin/post-new.php1,773 ▲11321.74 ▲4.56459.85 ▲72.55158.00 ▲1.52
Media Library /wp-admin/upload.php1,701 ▲65.46 ▼0.06135.85 ▼20.39187.48 ▼5.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_adsauce_widget

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)
Even though everything seems fine, this is not 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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: adsauce, ads, advertizing, marketing

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

The main file in "Ads-Sponsors-Donations Manager" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 350 characters long)
  • 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")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin898 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript211718499
PHP113729399

PHP code Passed 2 tests

Analyzing 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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin