79% adbutler

Code Review | AdButler WordPress Plugin

WordPress plugin AdButler WordPress Plugin scored 79% from 54 tests.

About plugin

  • Plugin page: adbutler
  • Plugin version: 1.29
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.9.1
  • WordPress version: 5.9.2
  • First release: Oct 8, 2013
  • Latest release: Feb 25, 2022
  • Number of updates: 62
  • Update frequency: every 49.4 days
  • Top authors: sparklit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active / 11,623 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼285.13ms] Passed 4 tests

This is a short check of server-side resources used by AdButler WordPress Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.2658.34 ▲9.13
Dashboard /wp-admin3.62 ▲0.2037.66 ▲6.23
Posts /wp-admin/edit.php3.84 ▲0.2037.94 ▲1.93
Add New Post /wp-admin/post-new.php7.09 ▲0.1198.01 ▼1,151.36
Media Library /wp-admin/upload.php3.49 ▲0.1926.89 ▲2.70
Settings /wp-admin/admin.php?page=adbutler_plugin3.5836.11
Help /wp-admin/admin.php?page=adbutler_plugin_about3.4724.29

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 5 new options
New WordPress options
adbutler_interval_ads_start_nth_post
widget_adbutler_hb
adbutler_interval_ads_restrict_to_home
widget_adbutler
adbutler_interval_ads_restrict_to_pages

Browser metrics Passed 4 tests

Checking browser requirements for AdButler WordPress Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,829 ▲7516.33 ▲0.326.06 ▲0.422.23 ▼0.68
Dashboard /wp-admin2,946 ▲856.53 ▲0.35115.73 ▼17.01178.05 ▲13.21
Posts /wp-admin/edit.php2,726 ▲323.31 ▲0.0865.30 ▲0.47143.80 ▼1.56
Add New Post /wp-admin/post-new.php1,737 ▲6917.23 ▼0.73397.31 ▼29.06205.56 ▲47.33
Media Library /wp-admin/upload.php1,753 ▲585.87 ▲0.37127.36 ▼14.25217.03 ▲30.31
Settings /wp-admin/admin.php?page=adbutler_plugin1,4882.7558.71156.12
Help /wp-admin/admin.php?page=adbutler_plugin_about1,2422.8657.39124.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-includes/class-wp-hook.php+307
    Non-static method adbutler_plugin::uninstall() should not be called statically
  • Zombie WordPress options detected upon uninstall: 4 options
    • adbutler_interval_ads_restrict_to_pages
    • widget_adbutler_hb
    • adbutler_interval_ads_start_nth_post
    • adbutler_interval_ads_restrict_to_home

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Donate link: Invalid url: ""
  • Screenshots: A description for screenshot #2 is required in adbutler/assets to your readme.txt
Please take inspiration from this readme.txt

adbutler/adbutler.php 92% from 13 tests

The entry point to "AdButler WordPress Plugin" version 1.29 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 155 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin547 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS1666287
JavaScript3268192
SVG10134
PHP161619
PO File10015

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
13 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ab_admin_icon_20.png0.25KB0.20KB▼ 20.95%
images/icon-reports.png1.24KB0.43KB▼ 65.54%
images/icon-targeting.png2.08KB1.32KB▼ 36.47%
images/icon-scaling.png1.69KB1.11KB▼ 34.60%
images/icon-customize.png2.21KB1.49KB▼ 32.48%