Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼0.65ms] Passed 4 tests
Server-side resources used by WooCommerce Paylike Payment Gateway
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.48 ▼0.39 |
Dashboard /wp-admin | 3.46 ▲0.15 | 49.99 ▼3.64 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 49.89 ▼3.25 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 96.39 ▲4.69 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.07 ▲4.99 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Paylike Payment Gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲37 | 14.69 ▼0.03 | 1.58 ▼0.47 | 42.82 ▼1.01 |
Dashboard /wp-admin | 2,204 ▲27 | 5.63 ▲0.01 | 91.54 ▼7.83 | 43.06 ▼3.59 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 1.99 ▼0.04 | 39.44 ▼2.11 | 36.99 ▼0.17 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.22 ▼0.02 | 640.86 ▲20.38 | 63.07 ▲14.11 |
Media Library /wp-admin/upload.php | 1,412 ▲18 | 4.17 ▼0.01 | 94.66 ▲0.76 | 41.49 ▼1.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Paylike\\Exception\\ApiException' not found in wp-content/plugins/payment-gateway-via-paylike-for-woocommerce/vendor/paylike/php-api/src/Exception/ApiConnection.php:10
- > PHP Fatal error
Uncaught Error: Class 'Paylike\\Tests\\BaseTest' not found in wp-content/plugins/payment-gateway-via-paylike-for-woocommerce/vendor/paylike/php-api/tests/CurrenciesTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Paylike\\Exception\\ApiException' not found in wp-content/plugins/payment-gateway-via-paylike-for-woocommerce/vendor/paylike/php-api/src/Exception/NotFound.php:10
- > PHP Fatal error
Uncaught Error: Class 'Paylike\\Tests\\BaseTest' not found in wp-content/plugins/payment-gateway-via-paylike-for-woocommerce/vendor/paylike/php-api/tests/MerchantsLinesTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Paylike\\Tests\\BaseTest' not found in wp-content/plugins/payment-gateway-via-paylike-for-woocommerce/vendor/paylike/php-api/tests/AppsTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Paylike\\Endpoint\\Endpoint' not found in wp-content/plugins/payment-gateway-via-paylike-for-woocommerce/vendor/paylike/php-api/src/Endpoint/Apps.php:10
- > PHP Fatal error
Uncaught Error: Class 'Paylike\\Endpoint\\Endpoint' not found in wp-content/plugins/payment-gateway-via-paylike-for-woocommerce/vendor/paylike/php-api/src/Endpoint/Merchants.php:13
- > PHP Fatal error
Uncaught Error: Class 'Paylike\\Exception\\ApiException' not found in wp-content/plugins/payment-gateway-via-paylike-for-woocommerce/vendor/paylike/php-api/src/Exception/Unauthorized.php:10
- > PHP Fatal error
Uncaught Error: Class 'Paylike\\Tests\\BaseTest' not found in wp-content/plugins/payment-gateway-via-paylike-for-woocommerce/vendor/paylike/php-api/tests/TransactionsTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'Paylike\\Tests\\BaseTest' not found in wp-content/plugins/payment-gateway-via-paylike-for-woocommerce/vendor/paylike/php-api/tests/MerchantsTest.php:7
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #4 is required in payment-gateway-via-paylike-for-woocommerce/assets to your readme.txt
payment-gateway-via-paylike-for-woocommerce/woocommerce-gateway-paylike.php 77% from 13 tests
The primary PHP file in "WooCommerce Paylike Payment Gateway" version 4.0.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("payment-gateway-via-paylike-for-woocommerce.php" instead of "woocommerce-gateway-paylike.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin7,818 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 52 | 893 | 1,987 | 6,291 |
PO File | 3 | 298 | 401 | 957 |
JavaScript | 1 | 46 | 29 | 301 |
Markdown | 2 | 40 | 0 | 136 |
JSON | 3 | 0 | 0 | 99 |
XML | 2 | 2 | 0 | 30 |
SVG | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 13.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 2 | 5.13% |
▷ Concrete classes | 37 | 94.87% |
▷ Final classes | 0 | 0.00% |
Methods | 289 | |
▷ Static methods | 30 | 10.38% |
▷ Public methods | 232 | 80.28% |
▷ Protected methods | 20 | 6.92% |
▷ Private methods | 37 | 12.80% |
Functions | 14 | |
▷ Named functions | 10 | 71.43% |
▷ Anonymous functions | 4 | 28.57% |
Constants | 15 | |
▷ Global constants | 13 | 86.67% |
▷ Class constants | 2 | 13.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/paylike.png | 6.17KB | 3.30KB | ▼ 46.51% |