10% adseasy

Code Review | Ads Easy

WordPress plugin Ads Easy scored 10% from 54 tests.

About plugin

  • Plugin page: adseasy
  • Plugin version: 3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 5.9.2
  • First release: Mar 12, 2011
  • Latest release: Feb 26, 2016
  • Number of updates: 64
  • Update frequency: every 28.3 days
  • Top authors: tepelstreel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 13,646 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/adseasy/class-lib/AE_WidgetClass.php+258
    Function create_function() is deprecated

Server metrics [RAM: ▼2.13MB] [CPU: ▼356.34ms] Passed 4 tests

A check of server-side resources used by Ads Easy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.23 ▼1.286.01 ▼42.81
Dashboard /wp-admin2.25 ▼1.155.75 ▼26.15
Posts /wp-admin/edit.php2.25 ▼1.395.28 ▼31.70
Add New Post /wp-admin/post-new.php2.25 ▼4.725.49 ▼1,324.69
Media Library /wp-admin/upload.php2.25 ▼1.045.68 ▼19.02
Ads Easy /wp-admin/plugins.php?page=ads-easy-settings2.265.75

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 2 new options
New WordPress options
widget_ads_easy_widget
ae_options

Browser metrics Passed 4 tests

An overview of browser requirements for Ads Easy
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,834 ▲9015.72 ▲0.106.58 ▼0.4816.59 ▲14.30
Dashboard /wp-admin2,914 ▲535.98 ▼0.20116.60 ▼19.85174.92 ▲10.71
Posts /wp-admin/edit.php2,710 ▲163.24 ▲0.0068.09 ▲5.53145.89 ▲9.44
Add New Post /wp-admin/post-new.php1,771 ▼1020.99 ▲3.53431.79 ▼2.55163.35 ▲8.17
Media Library /wp-admin/upload.php1,718 ▲235.55 ▲0.05127.08 ▼9.80213.86 ▲23.81
Ads Easy /wp-admin/plugins.php?page=ads-easy-settings1,3464.2180.32135.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/adseasy/class-lib/AE_WidgetClass.php+258
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_ads_easy_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/plugins.php?page=ads-easy-settings
    • > Deprecated in wp-content/plugins/adseasy/class-lib/AE_WidgetClass.php+258
    Function create_function() is deprecated
    • > GET request to /wp-admin/plugins.php?page=ads-easy-settings
    • > Notice in wp-content/plugins/adseasy/class-lib/AE_AdminClass.php+119
    Undefined index: use_google_tags
    • > GET request to /wp-admin/plugins.php?page=ads-easy-settings
    • > Notice in wp-content/plugins/adseasy/class-lib/AE_AdminClass.php+133
    Undefined index: ae_css

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'A5_OptionPage' not found in wp-content/plugins/adseasy/class-lib/AE_AdminClass.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'A5_DynamicFiles' not found in wp-content/plugins/adseasy/class-lib/AE_DynamicCSSClass.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'A5_Widget' not found in wp-content/plugins/adseasy/class-lib/AE_WidgetClass.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/adseasy/class-lib/A5_WidgetClass.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/plugins.php?page=ads-easy-settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31592 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/adseasy/ta-expander.min.js?ver=3.0:1:2865)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30340)" undefined
    • > GET request to /wp-admin/plugins.php?page=ads-easy-settings
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31702 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can take inspiration from this readme.txt

adseasy/adseasy.php 92% from 13 tests

The entry point to "Ads Easy" version 3.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 283 characters long)

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
Good job! No executable or dangerous file extensions detected1,928 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP91,0535381,310
PO File2131140407
JavaScript78851211

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity17.78
▷ Minimum class complexity4.00
▷ Maximum class complexity32.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods88
▷ Static methods2427.27%
▷ Public methods8596.59%
▷ Protected methods00.00%
▷ Private methods33.41%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/a5-icon-11.png0.67KB0.42KB▼ 37.17%
tinymce/AdsEasy.png3.83KB1.25KB▼ 67.28%
img/a5-icon-34.png1.65KB1.35KB▼ 18.07%