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
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.06ms] Passed 4 tests
Server-side resources used by Sony Payment Services light for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.26 ▼1.67 |
Dashboard /wp-admin | 3.37 ▲0.07 | 55.42 ▲3.24 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.17 ▼4.56 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 96.46 ▼5.26 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.74 ▲4.95 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Sony Payment Services light for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▲0.02 | 1.92 ▼0.43 | 43.63 ▼0.48 |
Dashboard /wp-admin | 2,198 ▲24 | 5.63 ▲0.07 | 87.39 ▼12.02 | 40.73 ▼4.16 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.04 ▲0.08 | 34.99 ▼1.40 | 37.27 ▼0.37 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.22 ▼0.32 | 681.61 ▲17.04 | 63.61 ▲9.26 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.19 ▲0.01 | 100.01 ▼11.73 | 45.06 ▼0.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Requires php: Invalid plugin version format
sonypayment-light-for-woocommerce/woo-sonypayment-light.php 85% from 13 tests
"Sony Payment Services light for WooCommerce" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("7.7" instead of "3.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sonypayment-light-for-woocommerce.php" instead of "woo-sonypayment-light.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected5,637 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 441 | 1,076 | 4,081 |
PO File | 1 | 462 | 205 | 937 |
JavaScript | 6 | 88 | 1 | 487 |
CSS | 1 | 1 | 1 | 132 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 198)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 60.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 394.00 |
Average method complexity | 7.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 198.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 133 | |
▷ Static methods | 23 | 17.29% |
▷ Public methods | 129 | 96.99% |
▷ Protected methods | 1 | 0.75% |
▷ Private methods | 3 | 2.26% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 24 | |
▷ Global constants | 5 | 20.83% |
▷ Class constants | 19 | 79.17% |
▷ Public constants | 19 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin