Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- This plugin did not install gracefully
- > User error in wp-content/plugins/nodeless-paywall/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16.
Server metrics [RAM: ▼1.82MB] [CPU: ▼59.57ms] Passed 4 tests
This is a short check of server-side resources used by Nodeless Paywall
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 5.05 ▼37.32 |
Dashboard /wp-admin | 2.19 ▼1.15 | 6.99 ▼58.43 |
Posts /wp-admin/edit.php | 2.19 ▼1.16 | 7.00 ▼45.24 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.69 | 6.56 ▼97.29 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 8.22 ▼30.07 |
Server storage [IO: ▲1.86MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 624 new files
Database: 1 new table, no new options
New tables |
---|
wp_nodeless_paywall_payments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Nodeless Paywall
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲61 | 14.41 ▼0.26 | 2.22 ▲0.23 | 46.33 ▲1.44 |
Dashboard /wp-admin | 2,241 ▲61 | 5.63 ▼0.05 | 89.33 ▼2.27 | 82.50 ▲38.01 |
Posts /wp-admin/edit.php | 2,147 ▲47 | 2.01 ▲0.02 | 39.88 ▲3.30 | 37.12 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,697 ▲171 | 22.99 ▲5.51 | 661.04 ▼20.36 | 39.96 ▼21.01 |
Media Library /wp-admin/upload.php | 1,450 ▲50 | 4.24 ▲0.08 | 108.70 ▼10.22 | 46.10 ▼1.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User error in wp-content/plugins/nodeless-paywall/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16.
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 298× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'BitWasp\\Bitcoin\\Script\\Consensus\\ConsensusInterface' not found in wp-content/plugins/nodeless-paywall/vendor/protonlabs/bitcoin/src/Script/Consensus/BitcoinConsensus.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Composer\\Semver\\Constraint\\ConstraintInterface' not found in wp-content/plugins/nodeless-paywall/vendor/composer/semver/src/Constraint/MultiConstraint.php:17
- > PHP Fatal error
Uncaught Error: Class 'BitWasp\\Bitcoin\\Serializable' not found in wp-content/plugins/nodeless-paywall/vendor/protonlabs/bitcoin/src/Transaction/TransactionInput.php:14
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\Universal\\Integer' not found in wp-content/plugins/nodeless-paywall/vendor/fgrosse/phpasn1/lib/ASN1/Universal/Enumerated.php:15
- > PHP Fatal error
Uncaught Error: Interface 'BitWasp\\Bitcoin\\Crypto\\EcAdapter\\Serializer\\Key\\PrivateKeySerializerInterface' not found in wp-content/plugins/nodeless-paywall/vendor/protonlabs/bitcoin/src/Crypto/EcAdapter/Impl/PhpEcc/Serializer/Key/PrivateKeySerializer.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Mdanter\\Ecc\\Math\\GmpMathInterface' not found in wp-content/plugins/nodeless-paywall/vendor/mdanter/ecc/src/Math/GmpMath.php:8
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\ASNObject' not found in wp-content/plugins/nodeless-paywall/vendor/fgrosse/phpasn1/lib/ASN1/Construct.php:19
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\ASNObject' not found in wp-content/plugins/nodeless-paywall/vendor/fgrosse/phpasn1/lib/ASN1/AbstractString.php:15
- > PHP Fatal error
Uncaught Error: Class 'BitWasp\\Buffertools\\Types\\AbstractUint' not found in wp-content/plugins/nodeless-paywall/vendor/bitwasp/buffertools/src/Buffertools/Types/Uint32.php:9
- > PHP Fatal error
Trait 'Jorijn\\Bitcoin\\Bolt11\ormalizer\\DenormalizerTrait' not found in wp-content/plugins/nodeless-paywall/vendor/jorijn/bitcoin-bolt11/src/Normalizer/FallbackAddressDenormalizer.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Contributors: The plugin contributors field is missing
nodeless-paywall/nodeless-paywall.php 85% from 13 tests
"Nodeless Paywall" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin33,177 lines of code in 600 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 568 | 7,707 | 15,678 | 30,773 |
JavaScript | 6 | 52 | 66 | 812 |
JSON | 2 | 0 | 0 | 794 |
Markdown | 7 | 126 | 0 | 349 |
CSS | 4 | 27 | 7 | 160 |
YAML | 4 | 15 | 3 | 128 |
XML | 2 | 0 | 0 | 45 |
Bourne Shell | 5 | 8 | 0 | 44 |
make | 1 | 14 | 0 | 41 |
Ant | 1 | 5 | 0 | 31 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 204)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 266.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 204.00 |
Code structure | ||
---|---|---|
Namespaces | 122 | |
Interfaces | 71 | |
Traits | 1 | |
Classes | 462 | |
▷ Abstract classes | 29 | 6.28% |
▷ Concrete classes | 433 | 93.72% |
▷ Final classes | 0 | 0.00% |
Methods | 2,767 | |
▷ Static methods | 294 | 10.63% |
▷ Public methods | 2,498 | 90.28% |
▷ Protected methods | 130 | 4.70% |
▷ Private methods | 139 | 5.02% |
Functions | 57 | |
▷ Named functions | 18 | 31.58% |
▷ Anonymous functions | 39 | 68.42% |
Constants | 394 | |
▷ Global constants | 6 | 1.52% |
▷ Class constants | 388 | 98.48% |
▷ Public constants | 380 | 97.94% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/banner-772x250.png | 41.09KB | 13.01KB | ▼ 68.34% |
.wordpress-org/icon-256x256.png | 16.46KB | 6.79KB | ▼ 58.78% |
.wordpress-org/banner-1544x500.png | 88.74KB | 30.13KB | ▼ 66.05% |
.wordpress-org/icon-128x128.png | 6.52KB | 2.93KB | ▼ 55.01% |
assets/img/nodeless.png | 16.46KB | 6.79KB | ▼ 58.78% |