Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.03ms] Passed 4 tests
This is a short check of server-side resources used by Syspay
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.41 ▼0.05 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.14 ▼2.27 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.89 ▼0.46 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 81.14 ▼17.33 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.74 ▲0.73 |
Syspay payment form /wp-admin/options-general.php?page=syspay-payment-form-settings-page | 3.21 | 31.74 |
Server storage [IO: ▲2.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Syspay
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.28 ▼1.28 | 4.64 ▲2.80 | 44.53 ▲3.20 |
Dashboard /wp-admin | 2,210 ▲22 | 4.82 ▼0.07 | 106.81 ▼0.92 | 39.25 ▼5.57 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 39.39 ▲4.10 | 35.55 ▼3.33 |
Add New Post /wp-admin/post-new.php | 6,366 ▲4,844 | 22.36 ▼0.87 | 880.20 ▲216.01 | 57.88 ▲4.20 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.02 | 95.75 ▼8.53 | 45.35 ▲0.96 |
Syspay payment form /wp-admin/options-general.php?page=syspay-payment-form-settings-page | 823 | 2.06 | 24.44 | 27.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
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)
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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/syspay-for-woocommerce/includes/payment_form.php:59
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: bezahlsystem, syspay, online payment, payment, checkout...
syspay-for-woocommerce/syspay.php 69% from 13 tests
The main file in "Syspay" v. 1.54 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("syspay-for-woocommerce.php" instead of "syspay.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 302 characters long)
- Requires at least: The required version number must match the one declared in readme.txt ("5.6.0" instead of "3.0.0")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin61,684 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 59,460 |
PHP | 5 | 314 | 345 | 1,739 |
JavaScript | 8 | 97 | 149 | 291 |
PO File | 2 | 64 | 64 | 173 |
Sass | 2 | 2 | 0 | 19 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 7.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 2 | 2.44% |
▷ Public methods | 75 | 91.46% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 8.54% |
Functions | 29 | |
▷ Named functions | 23 | 79.31% |
▷ Anonymous functions | 6 | 20.69% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 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.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/icon.png | 11.82KB | 4.62KB | ▼ 60.96% |