10% please-adblock

Code Review | please adblock

WordPress plugin please adblock scored10%from 54 tests.

About plugin

  • Plugin page: please-adblock
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 6.3.1
  • First release: Dec 23, 2015
  • Latest release: Dec 23, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: gui.do (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /560 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/please-adblock/please-adblock.php+17
    Methods with the same name as their class will not be constructors in a future version of PHP; please_adblock has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼56.42ms] Passed 4 tests

Analyzing server-side resources used by please adblock
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.58 ▼35.40
Dashboard /wp-admin2.07 ▼1.235.61 ▼46.84
Posts /wp-admin/edit.php2.08 ▼1.285.74 ▼47.88
Add New Post /wp-admin/post-new.php2.07 ▼3.814.87 ▼95.56
Media Library /wp-admin/upload.php2.07 ▼1.156.14 ▼29.14

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_please_adblock
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for please adblock
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲13813.62 ▼0.609.73 ▲7.5743.97 ▼0.24
Dashboard /wp-admin2,221 ▲215.80 ▼0.11101.17 ▼0.7539.72 ▼2.96
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0339.57 ▼4.3336.17 ▼2.58
Add New Post /wp-admin/post-new.php1,392 ▼14118.94 ▼4.30519.04 ▼133.3249.58 ▲2.11
Media Library /wp-admin/upload.php1,400 ▼34.22 ▼0.0695.39 ▼3.2941.88 ▼3.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/please-adblock/please-adblock.php+17
    Methods with the same name as their class will not be constructors in a future version of PHP; please_adblock has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_please_adblock
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/please-adblock/please-adblock.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: privacy, ads

please-adblock/please-adblock.php Passed 13 tests

Analyzing the main PHP file in "please adblock" version 0.1
63 characters long description:
If reader is not using an adblocker, it suggest the use of one.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected258 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2276230
PHP113828

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin