100% adbusters

Code Review | Adbusters

WordPress plugin Adbusters scored 100% from 54 tests.

About plugin

  • Plugin page: adbusters
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.0
  • WordPress version: 5.9.2
  • First release: Oct 30, 2013
  • Latest release: Nov 22, 2018
  • Number of updates: 21
  • Update frequency: every 88.1 days
  • Top authors: automattic (66.67%)philipjohn (28.57%)DJPaul (14.29%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 28,186 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.01MB] [CPU: ▼300.88ms] Passed 4 tests

This is a short check of server-side resources used by Adbusters
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0254.28 ▲2.73
Dashboard /wp-admin3.42 ▲0.0233.89 ▼0.82
Posts /wp-admin/edit.php3.65 ▲0.0238.46 ▲0.70
Add New Post /wp-admin/post-new.php6.89 ▼0.0892.74 ▼1,204.42
Media Library /wp-admin/upload.php3.31 ▲0.0123.54 ▲1.02

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Adbusters: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.77 ▼0.036.29 ▲0.082.53 ▲0.28
Dashboard /wp-admin2,892 ▲346.17 ▼0.04114.64 ▼17.53155.83 ▼11.53
Posts /wp-admin/edit.php2,694 ▲33.24 ▲0.0263.75 ▼1.14139.94 ▼2.77
Add New Post /wp-admin/post-new.php1,661 ▼016.18 ▲0.09405.29 ▼5.64157.21 ▲4.92
Media Library /wp-admin/upload.php1,698 ▼35.51 ▼0.01142.01 ▼3.96182.15 ▲1.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 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 SRP test was a success

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: ad network, ads, iframe busters

adbusters/adbusters.php Passed 13 tests

"Adbusters" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
39 characters long description:
Iframe busters for popular ad networks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected621 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
HTML217381507
PHP2206164
Markdown117027
JavaScript14523

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.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
PNG images were not found in this plugin