10% blocked-banners-stats

Code Review | Blocked Banners Stats

WordPress plugin Blocked Banners Stats scored10%from 54 tests.

About plugin

  • Plugin page: blocked-banners-s...
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.6-3.9
  • WordPress version: 6.3.1
  • First release: Oct 20, 2014
  • Latest release: Oct 20, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: botmon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /739 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/blocked-banners-stats/blbnstats.php+87
    syntax error, unexpected end of file

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

Server-side resources used by Blocked Banners Stats
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.70 ▼3.41
Dashboard /wp-admin3.31 ▲0.0051.65 ▼3.08
Posts /wp-admin/edit.php3.36 ▲0.0054.43 ▲1.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.79 ▼14.40
Media Library /wp-admin/upload.php3.23 ▲0.0043.56 ▲5.58

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Blocked Banners Stats: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.112.10 ▲0.3047.22 ▲1.62
Dashboard /wp-admin2,195 ▲185.62 ▼0.0491.36 ▼6.1942.20 ▼1.40
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0741.00 ▲2.8736.65 ▲4.89
Add New Post /wp-admin/post-new.php1,531 ▲323.00 ▼0.21694.82 ▲52.9262.18 ▲9.86
Media Library /wp-admin/upload.php1,397 ▼04.19 ▼0.00102.06 ▼1.0745.36 ▲0.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/blocked-banners-stats/blbnstats.class.php on line 316
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/blocked-banners-stats/blbnstats.php on line 87

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)
There were no browser issues found


Plugin configuration 93% from 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
5 plugin tags: ads, stats, ad-block, statistics, advertising

blocked-banners-stats/blbnstats.php 85% from 13 tests

Analyzing the main PHP file in "Blocked Banners Stats" version 0.0.1
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("blocked-banners-stats.php" instead of "blbnstats.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 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected790 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity31.33
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity5.32
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods525.00%
▷ Public methods1365.00%
▷ Protected methods735.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions3100.00%
▷ Global constants412.90%
▷ Class constants2787.10%
▷ Public constants27100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin