72% eazy-ad-unblocker

Code Review | Eazy Ad Unblocker

WordPress plugin Eazy Ad Unblocker scored72%from 54 tests.

About plugin

  • Plugin page: eazy-ad-unblocker
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.3.2
  • WordPress version: 6.3.1
  • First release: Apr 7, 2020
  • Latest release: Nov 5, 2023
  • Number of updates: 63
  • Update frequency: every 20.8 days
  • Top authors: debp85 (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

300+ active /12,671 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼9.39ms] Passed 4 tests

Server-side resources used by Eazy Ad Unblocker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1323.44 ▼17.52
Dashboard /wp-admin3.49 ▲0.1451.12 ▼6.80
Posts /wp-admin/edit.php3.60 ▲0.2549.39 ▲3.05
Add New Post /wp-admin/post-new.php6.07 ▲0.1986.93 ▼10.02
Media Library /wp-admin/upload.php3.41 ▲0.1834.05 ▼3.23
Eazy Ad Unblocker /wp-admin/options-general.php?page=eazy-ad-unblocker3.3631.78
Hide or Restore /wp-admin/admin.php?page=eazy-ad-unblocker-hide-restore3.3530.49
Eazy Ad Unblocker /wp-admin/admin.php?page=eazy-ad-unblocker3.3530.22

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 97 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
eazy-ad-unblocker-settings
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Eazy Ad Unblocker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,135 ▲38813.88 ▼0.83193.40 ▲191.6538.46 ▼8.05
Dashboard /wp-admin2,225 ▲485.54 ▼0.1288.41 ▼3.6170.24 ▲28.46
Posts /wp-admin/edit.php2,136 ▲361.95 ▼0.0538.60 ▲1.5934.08 ▼0.51
Add New Post /wp-admin/post-new.php6,259 ▲4,73326.14 ▲2.96888.17 ▲198.7181.13 ▲16.39
Media Library /wp-admin/upload.php1,433 ▲364.18 ▼0.0395.60 ▼10.0072.02 ▲26.55
Eazy Ad Unblocker /wp-admin/options-general.php?page=eazy-ad-unblocker1,7116.87141.45111.10
Hide or Restore /wp-admin/admin.php?page=eazy-ad-unblocker-hide-restore9292.1625.9625.68
Eazy Ad Unblocker /wp-admin/admin.php?page=eazy-ad-unblocker1,7086.78130.63104.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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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)
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=eazy-ad-unblocker
    • > Warning in wp-content/plugins/eazy-ad-unblocker/index.php+376
    session_start(): Cannot start session when headers already sent

SRP 0% 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
The following issues need your attention
  • 8× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/eazy-ad-unblocker/css/themes/ui-darkness/jquery-ui.min.css.php
    • > /wp-content/plugins/eazy-ad-unblocker/css/themes/le-frog/jquery-ui.min.css.php
    • > /wp-content/plugins/eazy-ad-unblocker/css/themes/smoothness/jquery-ui.min.css.php
    • > /wp-content/plugins/eazy-ad-unblocker/css/themes/blitzer/jquery-ui.min.css.php
    • > /wp-content/plugins/eazy-ad-unblocker/css/themes/ui-lightness/jquery-ui.min.css.php
    • > /wp-content/plugins/eazy-ad-unblocker/index.php
    • > /wp-content/plugins/eazy-ad-unblocker/css/themes/redmond/jquery-ui.min.css.php
    • > /wp-content/plugins/eazy-ad-unblocker/css/style.css.php
  • 2843× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined index: EAZY_AD_UNBLOCKER_HOLDER_CLASS_NAME in wp-content/plugins/eazy-ad-unblocker/css/themes/blitzer/jquery-ui.min.css.php on line 11
    • > PHP Notice
      Undefined index: EAZY_AD_UNBLOCKER_HOLDER_CLASS_NAME in wp-content/plugins/eazy-ad-unblocker/css/themes/smoothness/jquery-ui.min.css.php on line 10
    • > PHP Notice
      Undefined index: EAZY_AD_UNBLOCKER_HOLDER_CLASS_NAME in wp-content/plugins/eazy-ad-unblocker/css/themes/ui-lightness/jquery-ui.min.css.php on line 11
    • > PHP Notice
      Undefined index: EAZY_AD_UNBLOCKER_HOLDER_CLASS_NAME in wp-content/plugins/eazy-ad-unblocker/css/themes/blitzer/jquery-ui.min.css.php on line 11
    • > PHP Notice
      Undefined index: EAZY_AD_UNBLOCKER_HOLDER_CLASS_NAME in wp-content/plugins/eazy-ad-unblocker/css/themes/ui-darkness/jquery-ui.min.css.php on line 10
    • > PHP Notice
      Undefined index: EAZY_AD_UNBLOCKER_HOLDER_CLASS_NAME in wp-content/plugins/eazy-ad-unblocker/css/themes/redmond/jquery-ui.min.css.php on line 10
    • > PHP Notice
      Undefined index: EAZY_AD_UNBLOCKER_HOLDER_CLASS_NAME in wp-content/plugins/eazy-ad-unblocker/css/themes/ui-darkness/jquery-ui.min.css.php on line 10
    • > PHP Notice
      Undefined index: EAZY_AD_UNBLOCKER_HOLDER_CLASS_NAME in wp-content/plugins/eazy-ad-unblocker/css/themes/ui-lightness/jquery-ui.min.css.php on line 11
    • > PHP Notice
      Undefined index: EAZY_AD_UNBLOCKER_HOLDER_CLASS_NAME in wp-content/plugins/eazy-ad-unblocker/css/themes/redmond/jquery-ui.min.css.php on line 10
    • > PHP Notice
      Undefined index: EAZY_AD_UNBLOCKER_HOLDER_CLASS_NAME in wp-content/plugins/eazy-ad-unblocker/css/themes/blitzer/jquery-ui.min.css.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: anti adblock, ad unblocker

eazy-ad-unblocker/index.php 92% from 13 tests

"Eazy Ad Unblocker" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eazy-ad-unblocker.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin1,382 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP93841511,098
JavaScript116144284

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity61.50
▷ Minimum class complexity40.00
▷ Maximum class complexity83.00
Average method complexity5.17
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods13.45%
▷ Public methods2896.55%
▷ Protected methods13.45%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
82 PNG files occupy 0.34MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/themes/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png0.33KB0.16KB▼ 52.38%
css/themes/le-frog/images/ui-icons_4eb305_256x240.png4.44KB4.17KB▼ 6.02%
css/themes/ui-darkness/images/ui-bg_highlight-soft_80_eeeeee_1x100.png0.27KB0.13KB▼ 51.45%
css/themes/blitzer/images/ui-icons_004276_256x240.png4.44KB4.17KB▼ 6.02%
css/themes/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%