78% wp-adblock-dedect

Code Review | WP Adblock Dedect

WordPress plugin WP Adblock Dedect scored78%from 54 tests.

About plugin

  • Plugin page: wp-adblock-dedect
  • Plugin version: 3.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.7.3
  • WordPress version: 6.3.1
  • First release: Aug 9, 2016
  • Latest release: Apr 24, 2017
  • Number of updates: 24
  • Update frequency: every 15.0 days
  • Top authors: truser (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

100+ active /10,651 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.70ms] Passed 4 tests

This is a short check of server-side resources used by WP Adblock Dedect
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.89 ▼1.25
Dashboard /wp-admin3.31 ▼0.0345.28 ▼13.48
Posts /wp-admin/edit.php3.37 ▲0.0145.92 ▼4.87
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.12 ▼3.18
Media Library /wp-admin/upload.php3.24 ▲0.0132.84 ▼0.29
Adblock Dedect Settings /wp-admin/admin.php?page=adblock-dedect-settings3.1828.54
Adblock Dedect /wp-admin/admin.php?page=adblock-dedect3.2029.04

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 10 new options
New WordPress options
NoAdblockPlusBtn
widget_recent-posts
NoAdblockPlusTitle
widget_theysaidso_widget
NoAdblockPlusRedirectPage
can_compress_scripts
widget_recent-comments
db_upgraded
NoAdblockPlusDesc
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Adblock Dedect
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,961 ▲21513.60 ▼0.927.45 ▲5.8139.85 ▼1.22
Dashboard /wp-admin2,235 ▲474.84 ▼0.0398.27 ▼11.0138.55 ▼5.14
Posts /wp-admin/edit.php2,118 ▲292.04 ▲0.0635.91 ▲0.2233.56 ▲2.15
Add New Post /wp-admin/post-new.php6,248 ▲4,72926.24 ▲3.18844.27 ▲158.6762.39 ▲9.72
Media Library /wp-admin/upload.php1,408 ▲204.24 ▼0.0296.60 ▼0.3939.63 ▼2.35
Adblock Dedect Settings /wp-admin/admin.php?page=adblock-dedect-settings9232.0221.8829.92
Adblock Dedect /wp-admin/admin.php?page=adblock-dedect8142.0624.7028.44

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
  • Zombie WordPress options detected upon uninstall: 10 options
    • NoAdblockPlusTitle
    • NoAdblockPlusDesc
    • widget_recent-comments
    • NoAdblockPlusBtn
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • NoAdblockPlusRedirectPage
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=adblock-dedect-settings
    • > Notice in wp-content/plugins/wp-adblock-dedect/index.php+101
    Undefined index: NoAdblockPlusValuesSubmit

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
Please 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_action() in wp-content/plugins/wp-adblock-dedect/index.php:13

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: wordpress adblock dedect, no adblock, adblock, adblock modal, wordpress adblock detect...

wp-adblock-dedect/index.php 92% from 13 tests

The main file in "WP Adblock Dedect" v. 3.5.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-adblock-dedect.php" instead of "index.php")

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
There were no executable files found in this plugin554 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1266219
PHP11916209
CSS250126

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.35
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
wpsc.png21.75KB8.73KB▼ 59.87%