83% adunblock

Code Review | AdUnblock

WordPress plugin AdUnblock scored83%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: 6.3.1
  • 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,718 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.47ms] Passed 4 tests

Server-side resources used by AdUnblock
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.02416.07 ▲376.96
Dashboard /wp-admin3.33 ▲0.0245.02 ▼5.52
Posts /wp-admin/edit.php3.38 ▲0.0246.25 ▲0.56
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.50 ▼15.40
Media Library /wp-admin/upload.php3.25 ▲0.0235.39 ▲2.50
AdUnblock /wp-admin/options-general.php?page=adunblock3.2230.62

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
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 /2,794 ▲4813.25 ▼1.354.51 ▲2.7139.36 ▼4.65
Dashboard /wp-admin2,207 ▲225.84 ▼0.0697.54 ▼18.6139.24 ▼6.29
Posts /wp-admin/edit.php2,096 ▲71.97 ▼0.0439.65 ▼0.5238.54 ▲2.09
Add New Post /wp-admin/post-new.php1,545 ▲2618.26 ▼4.91600.23 ▼73.5252.37 ▼0.33
Media Library /wp-admin/upload.php1,392 ▲44.17 ▼0.0695.76 ▼10.4841.96 ▼1.02
AdUnblock /wp-admin/options-general.php?page=adunblock7832.0324.7325.78

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • adunblock_id
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > 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
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt 88% 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
These attributes need to be fixed:
  • Donate link: Invalid URI found ("")
  • Tags: Please add at least on tag
You can look at the official readme.txt

adunblock/main.php 92% from 13 tests

The main file in "AdUnblock" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("adunblock.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin69 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin