Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Error in wp-content/plugins/paymentwall-for-easy-digital-downloads/includes/class-paymentwall-brick.php+49
Uncaught Error: Call to undefined function edd_is_test_mode() in wp-content/plugins/paymentwall-for-easy-digital-downloads/includes/class-paymentwall-brick.php:49
Stack trace:
#0 wp-content/plugins/paymentwall-for-easy-digital-downloads/includes/class-paymentwall-brick.php(25): edd_paymentwall_brick->init_paymentwall_config()
#1 wp-content/plugins/paymentwall-for-easy-digital-downloads/paymentwall-for-easy-digital-downloads.php(58): edd_paymentwall_brick->init()
#2 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#3 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.95ms] Passed 4 tests
A check of server-side resources used by Paymentwall for EDD
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.56 ▲0.72 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.12 ▼6.74 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.26 ▲0.78 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.23 ▼24.93 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.51 ▼0.83 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Paymentwall for EDD
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼1.38 | 1.74 ▼0.08 | 44.56 ▲0.10 |
Dashboard /wp-admin | 2,206 ▲15 | 5.91 ▲0.01 | 109.81 ▲1.79 | 42.70 ▲0.09 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.05 ▲0.04 | 40.42 ▲4.74 | 36.09 ▲3.56 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.47 ▼0.01 | 645.14 ▼18.59 | 56.69 ▼0.88 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.21 ▲0.02 | 98.60 ▼5.62 | 43.52 ▼1.51 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 24× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_Signature_Abstract' not found in wp-content/plugins/paymentwall-for-easy-digital-downloads/lib/paymentwall-php/lib/Paymentwall/Signature/Pingback.php:3
- > PHP Fatal error
require_once(): Failed opening required 'lib/paymentwall.php' (include_path='.:/usr/share/php') in wp-content/plugins/paymentwall-for-easy-digital-downloads/lib/paymentwall-php/features/bootstrap/FeatureContext.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/paymentwall-for-easy-digital-downloads/paymentwall-for-easy-digital-downloads.php:13
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_Instance' not found in wp-content/plugins/paymentwall-for-easy-digital-downloads/lib/paymentwall-php/lib/Paymentwall/Widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_ApiObject' not found in wp-content/plugins/paymentwall-for-easy-digital-downloads/lib/paymentwall-php/lib/Paymentwall/Charge.php:3
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_ApiObject' not found in wp-content/plugins/paymentwall-for-easy-digital-downloads/lib/paymentwall-php/lib/Paymentwall/GenerericApiObject.php:3
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_Response_Abstract' not found in wp-content/plugins/paymentwall-for-easy-digital-downloads/lib/paymentwall-php/lib/Paymentwall/Response/Success.php:3
- > PHP Fatal error
Uncaught Error: Class 'Paymentwall_ApiObject' not found in wp-content/plugins/paymentwall-for-easy-digital-downloads/lib/paymentwall-php/lib/Paymentwall/Subscription.php:3
- > PHP Fatal error
Uncaught Error: Class 'Behat\\Behat\\Context\\BehatContext' not found in wp-content/plugins/paymentwall-for-easy-digital-downloads/lib/paymentwall-php/features/bootstrap/WidgetContext.php:5
- > PHP Fatal error
Uncaught Error: Class 'edd_paymentwall_abstract' not found in wp-content/plugins/paymentwall-for-easy-digital-downloads/includes/class-paymentwall-brick.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
Attributes that require attention:
- Tested up to: Version not formatted correctly
- Requires at least: Version not formatted correctly
paymentwall-for-easy-digital-downloads/paymentwall-for-easy-digital-downloads.php Passed 13 tests
The entry point to "Paymentwall for EDD" version 1.1.1 is a PHP file that has certain tags in its header comment area
73 characters long description:
Allows to use Paymentwall as a payment gateway for Easy Digital Downloads
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,408 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 396 | 238 | 1,782 |
Markdown | 1 | 45 | 0 | 267 |
Cucumber | 3 | 36 | 0 | 222 |
HTML | 2 | 13 | 0 | 97 |
JSON | 1 | 0 | 0 | 40 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.65 |
▷ 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 | 209 | |
▷ Static methods | 6 | 2.87% |
▷ Public methods | 166 | 79.43% |
▷ Protected methods | 38 | 18.18% |
▷ Private methods | 5 | 2.39% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 41 | |
▷ Global constants | 4 | 9.76% |
▷ Class constants | 37 | 90.24% |
▷ Public constants | 37 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected