Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼6.11ms] Passed 4 tests
Analyzing server-side resources used by Payment gateway via Paylike for Easy Digital Downloads
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 41.78 ▲5.03 |
Dashboard /wp-admin | 3.54 ▲0.23 | 48.10 ▲1.28 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 45.81 ▼4.18 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 79.58 ▼18.74 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 31.99 ▼2.81 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Payment gateway via Paylike for Easy Digital Downloads
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.19 ▼1.32 | 1.75 ▲0.02 | 43.70 ▲4.46 |
Dashboard /wp-admin | 2,209 ▲24 | 5.88 ▼0.03 | 101.61 ▲1.17 | 36.83 ▼6.12 |
Posts /wp-admin/edit.php | 2,089 ▲18 | 2.02 ▼0.03 | 39.67 ▲2.66 | 34.35 ▲1.93 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.32 ▲0.22 | 643.12 ▼35.29 | 53.15 ▼5.56 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.27 ▲0.11 | 99.53 ▼10.73 | 42.60 ▼4.45 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Paylike\\Exception\\ApiException' not found in wp-content/plugins/edd-paylike-payment-gateway/vendor/paylike/php-api/src/Exception/Unauthorized.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-paylike-payment-gateway/popup.php:68
- > PHP Fatal error
Uncaught Error: Class 'Paylike\\Exception\\ApiException' not found in wp-content/plugins/edd-paylike-payment-gateway/vendor/paylike/php-api/src/Exception/InvalidRequest.php:10
- > PHP Fatal error
Uncaught Error: Class 'Paylike\\Exception\\ApiException' not found in wp-content/plugins/edd-paylike-payment-gateway/vendor/paylike/php-api/src/Exception/Forbidden.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/edd-paylike-payment-gateway/helpers.php:168
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/edd-paylike-payment-gateway/edd-paylike.php:24
- > PHP Fatal error
Uncaught Error: Class 'Paylike\\Exception\\ApiException' not found in wp-content/plugins/edd-paylike-payment-gateway/vendor/paylike/php-api/src/Exception/Conflict.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Paylike\\HttpClient\\HttpClientInterface' not found in wp-content/plugins/edd-paylike-payment-gateway/vendor/paylike/php-api/src/HttpClient/CurlClient.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/edd-paylike-payment-gateway/settings.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/edd-paylike-payment-gateway/vendor/paylike/php-api/tests/BaseTest.php:7
- > 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 86% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: edd, gateway, credit card, easy-digital-downloads, paylike
edd-paylike-payment-gateway/edd-paylike.php 69% from 13 tests
Analyzing the main PHP file in "Payment gateway via Paylike for Easy Digital Downloads" version 1.7.0
The following require your attention:
- Domain Path: The domain path must begin with a forward slash character ("/languages")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("edd-paylike-payment-gateway.php" instead of "edd-paylike.php")
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
Success! There were no dangerous files found in this plugin6,704 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 514 | 1,020 | 3,365 |
JavaScript | 2 | 570 | 239 | 3,084 |
Markdown | 2 | 40 | 0 | 130 |
JSON | 3 | 0 | 0 | 76 |
XML | 2 | 2 | 0 | 30 |
CSS | 1 | 3 | 0 | 19 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 2 | 7.69% |
▷ Concrete classes | 24 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 119 | |
▷ Static methods | 3 | 2.52% |
▷ Public methods | 105 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 11.76% |
Functions | 43 | |
▷ Named functions | 41 | 95.35% |
▷ Anonymous functions | 2 | 4.65% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin