90% adbusters

Code Review | Adbusters

WordPress plugin Adbusters scored90%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: 6.3.1
  • 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

600+ active /50,759 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Adbusters
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0148.72 ▲2.07
Dashboard /wp-admin3.32 ▲0.0250.39 ▲1.09
Posts /wp-admin/edit.php3.37 ▲0.0148.44 ▼1.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.52 ▼19.06
Media Library /wp-admin/upload.php3.24 ▲0.0134.29 ▼7.58

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Adbusters
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.27 ▲0.321.95 ▲0.2340.47 ▼4.66
Dashboard /wp-admin2,198 ▲245.67 ▲0.0488.29 ▼3.6239.29 ▼4.81
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0136.36 ▼5.7933.31 ▼3.77
Add New Post /wp-admin/post-new.php1,532 ▼1323.30 ▲0.06591.80 ▼96.5457.37 ▼0.92
Media Library /wp-admin/upload.php1,394 ▼64.20 ▼0.0398.72 ▼16.0946.67 ▼0.42

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 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 Passed 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
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 issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: ad network, ads, iframe busters

adbusters/adbusters.php Passed 13 tests

The main PHP script in "Adbusters" version 1.0.7 is automatically included on every request by WordPress
39 characters long description:
Iframe busters for popular ad networks.

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
Everything looks great! No dangerous files found in this plugin621 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
HTML217381507
PHP2206164
Markdown117027
JavaScript14523

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
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
No PNG images were found in this plugin