83% adbuddy-adblocker-detection

Code Review | adBuddy+ (AdBlocker Detection) by NetfunkDesign

WordPress plugin adBuddy+ (AdBlocker Detection) by NetfunkDesign scored83%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: 6.3.1
  • 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 /2,107 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.31ms] Passed 4 tests

Analyzing server-side resources used by adBuddy+ (AdBlocker Detection) by NetfunkDesign
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0434.88 ▼2.89
Dashboard /wp-admin3.36 ▲0.0543.56 ▼1.64
Posts /wp-admin/edit.php3.47 ▲0.1146.44 ▼4.78
Add New Post /wp-admin/post-new.php5.96 ▲0.0793.56 ▼7.91
Media Library /wp-admin/upload.php3.28 ▲0.0533.40 ▲3.03
adBuddy+ /wp-admin/options-general.php?page=adbuddy3.2530.05

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for adBuddy+ (AdBlocker Detection) by NetfunkDesign
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6414.43 ▲0.052.25 ▲0.6646.53 ▲1.72
Dashboard /wp-admin2,207 ▲194.85 ▼0.09101.02 ▼2.1140.14 ▼5.09
Posts /wp-admin/edit.php2,093 ▲42.05 ▼0.0139.19 ▲3.5534.03 ▼5.92
Add New Post /wp-admin/post-new.php1,538 ▲1823.32 ▲0.01606.66 ▼62.8751.90 ▼9.08
Media Library /wp-admin/upload.php1,386 ▼54.21 ▼0.0194.18 ▼10.3341.16 ▼3.37
adBuddy+ /wp-admin/options-general.php?page=adbuddy8681.8738.7536.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • adbuddy_options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 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 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 90% 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
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Options Panel.), #2 (Pop-up Notice.)
You can take inspiration from this readme.txt

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

The principal PHP file in "adBuddy+ (AdBlocker Detection) by NetfunkDesign" v. 1.1.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 371 characters long)
  • Main file name: Name the main plugin file 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 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin268 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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

PNG files should be compressed to save space and minimize bandwidth usage
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
screenshot-1.png72.74KB31.90KB▼ 56.14%
img/stop-adblock.png60.51KB18.98KB▼ 68.64%
img/close.png1.02KB0.18KB▼ 82.53%
img/jslogo.png1.83KB1.52KB▼ 17.04%
screenshot-2.png89.60KB41.63KB▼ 53.53%