10% adseasy

Code Review | Ads Easy

WordPress plugin Ads Easy scored10%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: 6.3.1
  • 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

30+ active /14,040 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/adseasy/class-lib/AE_WidgetClass.php+258
    Function create_function() is deprecated

Server metrics [RAM: ▼1.63MB] [CPU: ▼49.58ms] Passed 4 tests

An overview of server-side resources used by Ads Easy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.36 ▼1.107.09 ▼31.73
Dashboard /wp-admin2.38 ▼0.928.39 ▼39.47
Posts /wp-admin/edit.php2.38 ▼0.987.86 ▼40.89
Add New Post /wp-admin/post-new.php2.38 ▼3.518.61 ▼86.21
Media Library /wp-admin/upload.php2.38 ▼0.857.57 ▼28.84
Ads Easy /wp-admin/plugins.php?page=ads-easy-settings2.389.44

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
ae_options
theysaidso_admin_options
db_upgraded
widget_ads_easy_widget
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Ads Easy
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲4814.25 ▼0.301.66 ▼0.0644.03 ▲2.28
Dashboard /wp-admin2,202 ▲255.52 ▼0.0882.58 ▼2.4277.73 ▲30.91
Posts /wp-admin/edit.php2,122 ▲222.03 ▲0.0634.06 ▼4.2730.84 ▼6.87
Add New Post /wp-admin/post-new.php1,557 ▲1923.14 ▲0.06756.02 ▲67.9957.12 ▲2.17
Media Library /wp-admin/upload.php1,422 ▲194.13 ▼0.0396.52 ▲0.1971.75 ▲26.81
Ads Easy /wp-admin/plugins.php?page=ads-easy-settings1,0494.8658.3855.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/adseasy/class-lib/AE_WidgetClass.php+258
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_ads_easy_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > 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 'WP_Widget' not found in wp-content/plugins/adseasy/class-lib/A5_WidgetClass.php:14
    • > 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 'A5_DynamicFiles' not found in wp-content/plugins/adseasy/class-lib/AE_DynamicCSSClass.php:13

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)
Please fix the following user-side errors
    • > 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=6.3.1 1:28609 "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=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" 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=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt might help

adseasy/adseasy.php 92% from 13 tests

Analyzing the main PHP file in "Ads Easy" version 3.3
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 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
Success! There were no dangerous files found in this plugin1,928 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP91,0535381,310
PO File2131140407
JavaScript78851211

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for 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

All PNG images should be compressed to minimize bandwidth usage for end users
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%