79% blocksolid-gateway

Code Review | Blocksolid Gateway

WordPress plugin Blocksolid Gateway scored 79% from 54 tests.

About plugin

  • Plugin page: blocksolid-gateway
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Dec 8, 2022
  • Latest release: Aug 31, 2023
  • Number of updates: 9
  • Update frequency: every 29.6 days
  • Top authors: peripatus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 289 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼2.66ms] Passed 4 tests

An overview of server-side resources used by Blocksolid Gateway
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.45 ▼1.80
Dashboard /wp-admin3.43 ▲0.1345.39 ▼1.97
Posts /wp-admin/edit.php3.54 ▲0.1945.53 ▲0.97
Add New Post /wp-admin/post-new.php6.01 ▲0.1393.67 ▼4.25
Media Library /wp-admin/upload.php3.35 ▲0.1335.02 ▼2.61

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Blocksolid Gateway
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲17713.63 ▼1.045.20 ▲3.1840.80 ▼4.37
Dashboard /wp-admin2,210 ▲244.88 ▼0.22105.07 ▼18.3640.06 ▼5.18
Posts /wp-admin/edit.php2,090 ▲12.04 ▲0.0837.34 ▲3.0431.95 ▼1.50
Add New Post /wp-admin/post-new.php1,536 ▲223.32 ▲0.06678.13 ▼24.1059.25 ▼1.39
Media Library /wp-admin/upload.php1,395 ▲74.19 ▲0.0397.99 ▼12.8843.61 ▼2.86
Blocksolid Gateway /wp-admin/blocksolid-gateway.php260.440.1213.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/blocksolid-gateway/blocksolid-gateway.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/blocksolid-gateway.php
    • > Network (severe)
    wp-admin/blocksolid-gateway.php - Failed to load resource: the server responded with a status of 404 (Not Found)


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
8 plugin tags: gated content, gateway, members area, block editor, blocks...

blocksolid-gateway/blocksolid-gateway.php Passed 13 tests

The main PHP script in "Blocksolid Gateway" version 1.0.6 is automatically included on every request by WordPress
100 characters long description:
Gated content based upon a Members Only flag for pages, posts and categories with Gutenberg support.

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
Good job! No executable or dangerous file extensions detected682 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3394.29%
▷ Anonymous functions25.71%
▷ 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
There were not PNG files found in your plugin