Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼170.16ms] Passed 4 tests
An overview of server-side resources used by Paymentwall for Jigoshop
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 35.10 ▲12.56 |
Dashboard /wp-admin | 3.06 ▲0.00 | 42.66 ▲0.94 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 45.90 ▲8.63 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 87.08 ▼689.08 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 31.52 ▼1.14 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 45 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Paymentwall for Jigoshop
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲73 | 16.37 ▲0.72 | 8.53 ▲0.08 | 51.05 ▼0.75 |
Dashboard /wp-admin | 2,970 ▲41 | 5.89 ▼0.25 | 137.11 ▼9.65 | 110.19 ▲1.88 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.00 | 60.96 ▲0.91 | 90.46 ▲2.69 |
Add New Post /wp-admin/post-new.php | 1,676 ▲176 | 18.84 ▲0.28 | 384.23 ▲0.57 | 102.00 ▼16.78 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▲0.00 | 143.06 ▼13.02 | 117.06 ▼4.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
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)
Good news, no errors were detected
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
Please take a closer look at the following
- 23× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'paymentwall_gateway' not found in wp-content/plugins/paymentwall-for-jigoshop/includes/class-paymentwall-brick.php:10
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_Config' not found in wp-content/plugins/paymentwall-for-jigoshop/lib/paymentwall-php/lib/Paymentwall/Base.php:6
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_ApiObject' not found in wp-content/plugins/paymentwall-for-jigoshop/lib/paymentwall-php/lib/Paymentwall/Charge.php:3
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_Instance' not found in wp-content/plugins/paymentwall-for-jigoshop/lib/paymentwall-php/lib/Paymentwall/HttpAction.php:3
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_Response_Abstract' not found in wp-content/plugins/paymentwall-for-jigoshop/lib/paymentwall-php/lib/Paymentwall/Response/Error.php:3
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_ApiObject' not found in wp-content/plugins/paymentwall-for-jigoshop/lib/paymentwall-php/lib/Paymentwall/GenerericApiObject.php:3
- > PHP Fatal error
require_once(): Failed opening required 'lib/paymentwall.php' (include_path='.:/usr/share/php') in wp-content/plugins/paymentwall-for-jigoshop/lib/paymentwall-php/features/bootstrap/FeatureContext.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Behat\\Behat\\Context\\BehatContext' not found in wp-content/plugins/paymentwall-for-jigoshop/lib/paymentwall-php/features/bootstrap/PingbackContext.php:5
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_Response_Abstract' not found in wp-content/plugins/paymentwall-for-jigoshop/lib/paymentwall-php/lib/Paymentwall/Response/Success.php:3
- > PHP Fatal error
Uncaught Error: Class 'Behat\\Behat\\Context\\BehatContext' not found in wp-content/plugins/paymentwall-for-jigoshop/lib/paymentwall-php/features/bootstrap/ChargeContext.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: paymentgateway, ecommerce, creditcard, jigoshop, brick...
paymentwall-for-jigoshop/paymentwall-for-jigoshop.php Passed 13 tests
The primary PHP file in "Paymentwall for Jigoshop" version 1.2.0 is used by WordPress to initiate all plugin functionality
51 characters long description:
Official Paymentwall module for WordPress Jigoshop.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin2,471 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 404 | 227 | 1,862 |
Markdown | 1 | 45 | 0 | 267 |
Cucumber | 3 | 36 | 0 | 222 |
HTML | 2 | 15 | 0 | 80 |
JSON | 1 | 0 | 0 | 40 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 5.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 5 | 18.52% |
▷ Concrete classes | 22 | 81.48% |
▷ Final classes | 0 | 0.00% |
Methods | 201 | |
▷ Static methods | 6 | 2.99% |
▷ Public methods | 165 | 82.09% |
▷ Protected methods | 35 | 17.41% |
▷ Private methods | 1 | 0.50% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 42 | |
▷ Global constants | 7 | 16.67% |
▷ Class constants | 35 | 83.33% |
▷ Public constants | 35 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/brick_logo.png | 4.00KB | 2.34KB | ▼ 41.40% |
assets/images/paymentwall_logo.png | 2.19KB | 1.32KB | ▼ 39.87% |