83% adsmatcher-anti-adblock

Code Review | AdsMatcher Anti Adblock

WordPress plugin AdsMatcher Anti Adblock scored 83% from 54 tests.

About plugin

  • Plugin page: adsmatcher-anti-a...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.0
  • WordPress version: 6.3.1
  • First release: Jun 28, 2022
  • Latest release: Jul 28, 2022
  • Number of updates: 5
  • Update frequency: every 15.6 days
  • Top authors: adsmatcher (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

200+ active / 2,838 total downloads

Benchmarks

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.10MB] [CPU: ▼4.10ms] Passed 4 tests

Analyzing server-side resources used by AdsMatcher Anti Adblock
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.65 ▼7.26
Dashboard /wp-admin3.39 ▲0.0853.73 ▼1.14
Posts /wp-admin/edit.php3.50 ▲0.1553.05 ▲1.51
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.00 ▼7.74
Media Library /wp-admin/upload.php3.31 ▲0.0837.69 ▼0.27
AdsMatcher /wp-admin/options-general.php?page=adsmatcher_plugin3.31217.30

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-comments
adsmatcher_title
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
adsmatcher_display_clostebtn
db_upgraded
adsmatcher_uniqueid
adsmatcher_adblocker_dissimulation
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

A check of browser resources used by AdsMatcher Anti Adblock
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲7914.48 ▼0.152.71 ▲0.6838.36 ▼5.30
Dashboard /wp-admin2,210 ▲15.83 ▲0.95106.65 ▲0.2040.27 ▼3.01
Posts /wp-admin/edit.php2,093 ▲72.04 ▲0.0539.25 ▲1.6532.62 ▼0.22
Add New Post /wp-admin/post-new.php1,541 ▲2123.19 ▲0.07605.13 ▼45.4556.53 ▲3.44
Media Library /wp-admin/upload.php1,392 ▲44.27 ▲0.08100.84 ▲0.7842.27 ▼0.74
AdsMatcher /wp-admin/options-general.php?page=adsmatcher_plugin9012.0426.6233.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 11 options in the database
    • theysaidso_admin_options
    • adsmatcher_uniqueid
    • widget_recent-comments
    • widget_recent-posts
    • adsmatcher_message
    • can_compress_scripts
    • adsmatcher_title
    • adsmatcher_adblocker_dissimulation
    • db_upgraded
    • widget_theysaidso_widget
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/adsmatcher-anti-adblock/views/message.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function network_site_url() in wp-content/plugins/adsmatcher-anti-adblock/views/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/adsmatcher-anti-adblock/views/notices.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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 to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
You can look at the official readme.txt

adsmatcher-anti-adblock/adsmatcher.php 85% from 13 tests

The primary PHP file in "AdsMatcher Anti Adblock" version 1.1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("adsmatcher-anti-adblock.php" instead of "adsmatcher.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected843 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12136262651
PO File34861160
JSON10018
CSS12014

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity15.00
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods37
▷ Static methods513.51%
▷ Public methods3697.30%
▷ Protected methods00.00%
▷ Private methods12.70%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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 files were detected