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.01MB] [CPU: ▼9.23ms] Passed 4 tests
This is a short check of server-side resources used by Paymentwall for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.62 ▼1.07 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.91 ▼13.07 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.91 ▼3.13 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.34 ▼19.66 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.26 ▲3.81 |
Server storage [IO: ▲0.14MB] [DB: ▲0.31MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Paymentwall for Woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.33 ▼0.96 | 1.82 ▲0.13 | 39.94 ▼0.89 |
Dashboard /wp-admin | 2,206 ▲17 | 5.91 ▲0.96 | 101.32 ▼3.00 | 37.63 ▼9.37 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.01 | 39.86 ▼2.82 | 34.32 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.33 ▲5.08 | 632.85 ▲16.27 | 59.42 ▲8.03 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▼0.03 | 93.68 ▼1.30 | 42.49 ▼0.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 23× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_Instance' not found in wp-content/plugins/paymentwall-for-woocommerce/lib/paymentwall-php/lib/Paymentwall/HttpAction.php:3
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_Signature_Abstract' not found in wp-content/plugins/paymentwall-for-woocommerce/lib/paymentwall-php/lib/Paymentwall/Signature/Widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'Behat\\Behat\\Context\\BehatContext' not found in wp-content/plugins/paymentwall-for-woocommerce/lib/paymentwall-php/features/bootstrap/PingbackContext.php:5
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_Brick' not found in wp-content/plugins/paymentwall-for-woocommerce/includes/class-paymentwall-brick-subscription.php:13
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_ApiObject' not found in wp-content/plugins/paymentwall-for-woocommerce/lib/paymentwall-php/lib/Paymentwall/GenerericApiObject.php:3
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_ApiObject' not found in wp-content/plugins/paymentwall-for-woocommerce/lib/paymentwall-php/lib/Paymentwall/Charge.php:3
- > PHP Fatal error
Uncaught Error: Class 'Behat\\Behat\\Context\\BehatContext' not found in wp-content/plugins/paymentwall-for-woocommerce/lib/paymentwall-php/features/bootstrap/ChargeContext.php:5
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_Config' not found in wp-content/plugins/paymentwall-for-woocommerce/lib/paymentwall-php/lib/Paymentwall/Base.php:6
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_ApiObject' not found in wp-content/plugins/paymentwall-for-woocommerce/lib/paymentwall-php/lib/Paymentwall/Subscription.php:3
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_ApiObject' not found in wp-content/plugins/paymentwall-for-woocommerce/lib/paymentwall-php/lib/Paymentwall/OneTimeToken.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Requires at least: Version not formatted correctly
- Tested up to: Version not formatted correctly
paymentwall-for-woocommerce/paymentwall-for-woocommerce.php Passed 13 tests
The principal PHP file in "Paymentwall for Woocommerce" v. 1.6.3 is loaded by WordPress automatically on each request
54 characters long description:
Official Paymentwall module for WordPress WooCommerce.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,190 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 525 | 318 | 2,450 |
Markdown | 2 | 48 | 0 | 277 |
Cucumber | 3 | 36 | 0 | 222 |
JavaScript | 1 | 2 | 0 | 101 |
HTML | 3 | 10 | 0 | 100 |
JSON | 1 | 0 | 0 | 40 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 8.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 5 | 17.24% |
▷ Concrete classes | 24 | 82.76% |
▷ Final classes | 0 | 0.00% |
Methods | 228 | |
▷ Static methods | 7 | 3.07% |
▷ Public methods | 192 | 84.21% |
▷ Protected methods | 35 | 15.35% |
▷ Private methods | 1 | 0.44% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 48 | |
▷ Global constants | 9 | 18.75% |
▷ Class constants | 39 | 81.25% |
▷ Public constants | 39 | 100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 0.55KB | 0.66KB | 0.00% |