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.07MB] [CPU: ▼8.06ms] Passed 4 tests
A check of server-side resources used by Web3devs Stacks Access Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 37.64 ▼5.63 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.68 ▼5.39 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 50.33 ▲4.92 |
Add New Post /wp-admin/post-new.php | 5.48 ▼0.41 | 73.36 ▼21.62 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 33.69 ▲0.42 |
Settings /wp-admin/admin.php?page=web3devs-stacks-access-settings | 3.27 | 34.11 |
Stacks Access /wp-admin/admin.php?page=web3devs-stacks-access | 3.26 | 30.32 |
Server storage [IO: ▲5.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Web3devs Stacks Access Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲194 | 21.80 ▲7.43 | 463.77 ▲461.99 | 45.28 ▲0.82 |
Dashboard /wp-admin | 2,233 ▲45 | 4.89 ▼1.02 | 106.31 ▼11.32 | 40.17 ▼7.85 |
Posts /wp-admin/edit.php | 2,116 ▲30 | 2.01 ▲0.01 | 39.26 ▲3.58 | 34.10 ▼1.33 |
Add New Post /wp-admin/post-new.php | 6,222 ▲4,708 | 24.49 ▲7.03 | 936.67 ▲287.92 | 58.83 ▲2.28 |
Media Library /wp-admin/upload.php | 1,415 ▲33 | 4.12 ▼0.07 | 95.48 ▼1.30 | 43.27 ▼0.13 |
Settings /wp-admin/admin.php?page=web3devs-stacks-access-settings | 1,005 | 2.06 | 29.08 | 29.37 |
Stacks Access /wp-admin/admin.php?page=web3devs-stacks-access | 801 | 2.05 | 23.90 | 25.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% 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 0% 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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/stacks-access/admin/partials/web3devs-stacks-access-admin-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/stacks-access/admin/partials/web3devs-stacks-access-admin-settings-display.php:68
- > PHP Notice
Undefined variable: coins in wp-content/plugins/stacks-access/admin/partials/web3devs-stacks-access-admin-settings-display.php on line 35
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Plugin on plugins list), #2 (Token configuration screen (Settings)), #3 (Connect wallet triggered on a page with restricted access), #4 (Selecting account), #5 (Signing message)
- Requires php: Version not formatted correctly
stacks-access/web3devs-stacks-access.php 85% from 13 tests
"Web3devs Stacks Access Plugin" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("stacks-access.php" instead of "web3devs-stacks-access.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 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin760 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 193 | 570 | 697 |
JavaScript | 6 | 4 | 149 | 52 |
CSS | 2 | 1 | 8 | 8 |
Markdown | 1 | 0 | 0 | 2 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 2 | 3.92% |
▷ Public methods | 39 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 23.53% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.72MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 106.29KB | 37.75KB | ▼ 64.48% |
public/js/stack-sign/dist/logo.png | 19.98KB | 6.95KB | ▼ 65.23% |
assets/screenshot-4.png | 106.19KB | 36.95KB | ▼ 65.20% |
assets/screenshot-5.png | 137.23KB | 48.47KB | ▼ 64.68% |
assets/screenshot-1.png | 203.29KB | 71.71KB | ▼ 64.73% |