10% ads-widgets-easy

Code Review | Ads Widgets Easy

WordPress plugin Ads Widgets Easy scored 10% from 54 tests.

About plugin

  • Plugin page: ads-widgets-easy
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-3.5.1
  • WordPress version: 5.9.2
  • First release: Apr 23, 2015
  • Latest release: Apr 23, 2015
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: daotaowordpress (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 3,853 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/ads-widgets-easy/ads-widgets-easy.php+113
    Function create_function() is deprecated

Server metrics [RAM: ▼2.19MB] [CPU: ▼348.94ms] Passed 4 tests

Analyzing server-side resources used by Ads Widgets Easy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▼1.378.67 ▼48.29
Dashboard /wp-admin2.85 ▼1.187.31 ▼38.91
Posts /wp-admin/edit.php2.86 ▼1.479.63 ▼44.39
Add New Post /wp-admin/post-new.php2.85 ▼4.749.72 ▼1,264.15
Media Library /wp-admin/upload.php2.85 ▼1.137.38 ▼25.01

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ads Widgets Easy
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,978 ▲22417.47 ▲1.765.88 ▼0.732.06 ▼0.74
Dashboard /wp-admin3,087 ▲2308.01 ▲1.89147.23 ▲16.37163.17 ▼5.31
Posts /wp-admin/edit.php2,918 ▲2245.16 ▲1.9377.56 ▲11.64142.78 ▲1.64
Add New Post /wp-admin/post-new.php1,663 ▼8916.35 ▼5.23404.22 ▼101.34212.33 ▲56.91
Media Library /wp-admin/upload.php1,692 ▼65.48 ▼0.07114.50 ▼33.61237.69 ▲46.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/ads-widgets-easy/ads-widgets-easy.php+113
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_image_widget

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
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 take a closer look at the following
  • 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/ads-widgets-easy/ads-widgets-easy.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration 93% 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
These attributes need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

ads-widgets-easy/ads-widgets-easy.php 92% from 13 tests

The principal PHP file in "Ads Widgets Easy" v. 2.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 159 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin96 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

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 code0.14
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.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 functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected