80% offadblock-wp

Code Review | offadblock-wp

WordPress plugin offadblock-wp scored 80% from 54 tests.

About plugin

  • Plugin page: offadblock-wp
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4
  • WordPress version: 6.3.1
  • First release: Jul 6, 2017
  • Latest release: Jul 6, 2017
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: dualon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 546 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.95MB] [CPU: ▼31.93ms] Passed 4 tests

A check of server-side resources used by offadblock-wp
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.80 ▼11.32
Dashboard /wp-admin3.00 ▼0.3121.36 ▼22.90
Posts /wp-admin/edit.php3.00 ▼0.3624.72 ▼24.60
Add New Post /wp-admin/post-new.php3.00 ▼2.8924.30 ▼65.87
Media Library /wp-admin/upload.php3.00 ▼0.2320.55 ▼14.34

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for offadblock-wp
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.81 ▼0.691.64 ▼0.2839.46 ▼5.11
Dashboard /wp-admin2,246 ▲555.03 ▼0.87107.37 ▲4.8672.08 ▲28.52
Posts /wp-admin/edit.php2,125 ▲332.30 ▲0.2738.26 ▼1.2734.46 ▼0.07
Add New Post /wp-admin/post-new.php1,544 ▲623.19 ▲0.15692.11 ▲28.1640.29 ▼16.80
Media Library /wp-admin/upload.php1,416 ▲344.31 ▲0.09100.68 ▲2.7291.73 ▲46.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: adblock, offadblock

offadblock-wp/offadblock-wp.php Passed 13 tests

The principal PHP file in "offadblock-wp" v. 1.0 is loaded by WordPress automatically on each request
96 characters long description:
The plugin reacts to the active adblock plugin, prohibiting or limiting the user's capabilities.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin690 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP34842332
CSS34514188
JavaScript429094
PO File1292976

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/img/dab-oab-icon.png1.83KB1.01KB▼ 44.56%
dab-oab-icon.png1.83KB1.01KB▼ 44.56%