83% adbuddy-adblocker-detection

Code Review | adBuddy+ (AdBlocker Detection) by NetfunkDesign

WordPress plugin adBuddy+ (AdBlocker Detection) by NetfunkDesign scored 83% from 54 tests.

About plugin

  • Plugin page: adbuddy-adblocker...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 5.9.2
  • First release: Jul 17, 2014
  • Latest release: Jul 19, 2014
  • Number of updates: 7
  • Update frequency: every 1.0 days
  • Top authors: Netfunkdesign (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,908 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼294.54ms] Passed 4 tests

Server-side resources used by adBuddy+ (AdBlocker Detection) by NetfunkDesign
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0853.64 ▲2.64
Dashboard /wp-admin3.46 ▲0.0532.29 ▼4.77
Posts /wp-admin/edit.php3.70 ▲0.0536.58 ▼0.28
Add New Post /wp-admin/post-new.php6.94 ▼0.0396.94 ▼1,163.74
Media Library /wp-admin/upload.php3.35 ▲0.0423.14 ▼9.38
adBuddy+ /wp-admin/options-general.php?page=adbuddy3.3223.27

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 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 adBuddy+ (AdBlocker Detection) by NetfunkDesign
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,794 ▲7216.19 ▲0.537.39 ▲1.772.38 ▲0.08
Dashboard /wp-admin2,897 ▲396.03 ▼0.07120.38 ▼15.84160.31 ▼0.40
Posts /wp-admin/edit.php2,693 ▲53.24 ▲0.0166.04 ▲2.82154.00 ▲9.89
Add New Post /wp-admin/post-new.php1,664 ▼8816.93 ▼3.84413.83 ▼33.39152.78 ▼4.84
Media Library /wp-admin/upload.php1,703 ▲55.50 ▼0.04137.83 ▼17.32189.44 ▼2.94
adBuddy+ /wp-admin/options-general.php?page=adbuddy1,0912.7665.74123.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 option in the database
    • adbuddy_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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× PHP files output text when accessed directly:
    • > /wp-content/plugins/adbuddy-adblocker-detection/netfunk-adbuddy.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side


Plugin configuration 90% 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
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Options Panel.), #2 (Pop-up Notice.)
Please take inspiration from this readme.txt

adbuddy-adblocker-detection/netfunk-adbuddy.php 85% from 13 tests

The main PHP script in "adBuddy+ (AdBlocker Detection) by NetfunkDesign" version 1.1.3 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 371 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("adbuddy-adblocker-detection.php" instead of "netfunk-adbuddy.php")

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
No dangerous file extensions were detected268 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions18100.00%
▷ Anonymous functions00.00%
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/jslogo.png1.83KB1.52KB▼ 17.04%
screenshot-2.png89.60KB41.63KB▼ 53.53%
img/stop-adblock.png60.51KB18.98KB▼ 68.64%
screenshot-1.png72.74KB31.90KB▼ 56.14%
img/close.png1.02KB0.18KB▼ 82.53%