83% adunblock

Code Review | AdUnblock

WordPress plugin AdUnblock scored 83% from 54 tests.

About plugin

  • Plugin page: adunblock
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.6
  • WordPress version: 5.9.2
  • First release: Sep 18, 2013
  • Latest release: Jan 2, 2014
  • Number of updates: 9
  • Update frequency: every 11.9 days
  • Top authors: nilsine (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,531 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.00MB] [CPU: ▼296.28ms] Passed 4 tests

A check of server-side resources used by AdUnblock
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.452,348.67 ▲2,296.08
Dashboard /wp-admin3.43 ▲0.0237.73 ▲2.57
Posts /wp-admin/edit.php3.66 ▲0.0235.05 ▼3.71
Add New Post /wp-admin/post-new.php6.90 ▼0.0791.53 ▼1,186.16
Media Library /wp-admin/upload.php3.31 ▲0.0226.18 ▲2.18
AdUnblock /wp-admin/options-general.php?page=adunblock3.2822.83

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for AdUnblock
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /5,663 ▲1,90916.55 ▲0.8825.87 ▲19.6569.33 ▲66.27
Dashboard /wp-admin2,897 ▲366.03 ▼0.14116.95 ▼12.42154.70 ▼6.19
Posts /wp-admin/edit.php2,693 ▲83.25 ▲0.0163.42 ▼0.28137.36 ▼5.98
Add New Post /wp-admin/post-new.php1,714 ▲5320.80 ▲4.80437.71 ▲17.87157.68 ▼0.77
Media Library /wp-admin/upload.php1,703 ▲55.54 ▲0.03147.47 ▲4.83183.97 ▼0.73
AdUnblock /wp-admin/options-general.php?page=adunblock1,0052.4151.63111.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • adunblock_id

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/adunblock/main.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 90% from 29 tests

readme.txt 88% 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
These attributes need your attention:
  • Donate link: Invalid URI ("")
  • Tags: No valid plugin tags found
You can look at the official readme.txt

adunblock/main.php 92% from 13 tests

The primary PHP file in "AdUnblock" version 1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("adunblock.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin69 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review 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.21
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 functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin