Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.45 ▼1.80 |
Dashboard /wp-admin | 3.43 ▲0.13 | 45.39 ▼1.97 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 45.53 ▲0.97 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 93.67 ▼4.25 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 35.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 |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Blocksolid Gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲177 | 13.63 ▼1.04 | 5.20 ▲3.18 | 40.80 ▼4.37 |
Dashboard /wp-admin | 2,210 ▲24 | 4.88 ▼0.22 | 105.07 ▼18.36 | 40.06 ▼5.18 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.04 ▲0.08 | 37.34 ▲3.04 | 31.95 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.32 ▲0.06 | 678.13 ▼24.10 | 59.25 ▼1.39 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.19 ▲0.03 | 97.99 ▼12.88 | 43.61 ▼2.86 |
Blocksolid Gateway /wp-admin/blocksolid-gateway.php | 26 | 0.44 | 0.12 | 13.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
- > PHP Fatal error
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)
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 172 | 115 | 484 |
JavaScript | 2 | 26 | 47 | 150 |
CSS | 1 | 8 | 0 | 48 |
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 code | 0.49 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 33 | 94.29% |
▷ Anonymous functions | 2 | 5.71% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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