Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼1.82ms] Passed 4 tests
An overview of server-side resources used by Unlock Protocol
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.83 ▼1.44 |
Dashboard /wp-admin | 3.45 ▲0.14 | 49.03 ▲5.13 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 56.23 ▲9.86 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.33 ▼13.12 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 32.73 ▲2.15 |
Unlock Protocol /wp-admin/options-general.php?page=unlock-protocol | 3.28 | 37.34 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
unlock_protocol_version |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
unlock_protocol_installed |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Unlock Protocol
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,094 ▲359 | 17.61 ▲3.24 | 2.00 ▲0.16 | 28.71 ▼14.91 |
Dashboard /wp-admin | 2,469 ▲281 | 8.61 ▲3.73 | 223.24 ▲107.04 | 41.73 ▼2.78 |
Posts /wp-admin/edit.php | 2,397 ▲305 | 7.43 ▲5.45 | 88.13 ▲49.57 | 35.75 ▲2.94 |
Add New Post /wp-admin/post-new.php | 6,210 ▲4,677 | 19.35 ▼3.85 | 806.88 ▲140.33 | 37.83 ▼16.95 |
Media Library /wp-admin/upload.php | 1,562 ▲174 | 8.73 ▲4.48 | 102.88 ▲4.77 | 39.64 ▼4.87 |
Unlock Protocol /wp-admin/options-general.php?page=unlock-protocol | 1,272 | 8.49 | 99.78 | 40.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- theysaidso_admin_options
- unlock_protocol_version
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- unlock_protocol_installed
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
- 18× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Trait 'Unlock_Protocol\\Inc\\Traits\\Singleton' not found in wp-content/plugins/unlock-protocol/inc/classes/class-unlock.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/unlock-protocol/unlock-protocol.php:15
- > PHP Fatal error
Trait 'Unlock_Protocol\\Inc\\Traits\\Singleton' not found in wp-content/plugins/unlock-protocol/inc/classes/blocks/class-unlock-box-block.php on line 21
- > PHP Notice
Undefined variable: login_button_bg_color in wp-content/plugins/unlock-protocol/templates/login/button.php on line 12
- > PHP Fatal error
Trait 'Unlock_Protocol\\Inc\\Traits\\Singleton' not found in wp-content/plugins/unlock-protocol/inc/classes/class-login.php on line 22
- > PHP Fatal error
Trait 'Unlock_Protocol\\Inc\\Traits\\Singleton' not found in wp-content/plugins/unlock-protocol/inc/classes/class-assets.php on line 19
- > PHP Fatal error
Trait 'Unlock_Protocol\\Inc\\Traits\\Singleton' not found in wp-content/plugins/unlock-protocol/inc/classes/class-menu.php on line 19
- > PHP Notice
Undefined variable: checkout_button_bg_color in wp-content/plugins/unlock-protocol/templates/login/checkout-button.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/unlock-protocol/inc/classes/rest-api/class-rest-base.php:18
- > PHP Fatal error
Trait 'Unlock_Protocol\\Inc\\Traits\\Singleton' not found in wp-content/plugins/unlock-protocol/inc/classes/class-plugin.php on line 19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: member, monetization, membership, unlock, paywall...
unlock-protocol/unlock-protocol.php 92% from 13 tests
The entry point to "Unlock Protocol" version 4.0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 187 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,171 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 397 | 1,000 | 1,165 |
CSS | 3 | 0 | 0 | 3 |
JavaScript | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 6.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 16 | 20.78% |
▷ Public methods | 54 | 70.13% |
▷ Protected methods | 15 | 19.48% |
▷ Private methods | 8 | 10.39% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/build/images/icon-128x128.62ac79b7.png | 13.13KB | 2.58KB | ▼ 80.34% |