Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.50MB] [CPU: ▼0.70ms] Passed 4 tests
An overview of server-side resources used by Sony Payment Services pro for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.49 ▲1.42 |
Dashboard /wp-admin | 4.14 ▲0.84 | 47.53 ▼4.43 |
Posts /wp-admin/edit.php | 4.14 ▲0.78 | 48.37 ▼1.85 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 93.42 ▲3.83 |
Media Library /wp-admin/upload.php | 4.14 ▲0.91 | 36.19 ▲2.05 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Sony Payment Services pro for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲102 | 13.46 ▼0.91 | 1.97 ▲0.21 | 46.40 ▲1.86 |
Dashboard /wp-admin | 2,218 ▲29 | 5.10 ▼0.80 | 101.89 ▼20.82 | 39.30 ▼8.27 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.32 ▲0.31 | 41.42 ▲1.51 | 35.20 ▼1.22 |
Add New Post /wp-admin/post-new.php | 1,526 ▲4 | 23.16 ▼0.06 | 585.38 ▼100.27 | 33.20 ▼34.27 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.58 ▲0.35 | 97.31 ▲1.57 | 39.95 ▼6.84 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% 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 version format
woo-sonypayment/woo-sonypayment.php 92% from 13 tests
"Sony Payment Services pro for WooCommerce" version 1.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("7.7" instead of "3.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected7,852 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 583 | 1,253 | 6,171 |
PO File | 1 | 467 | 205 | 947 |
JavaScript | 7 | 103 | 1 | 584 |
CSS | 1 | 2 | 2 | 150 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 211)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 77.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 394.00 |
Average method complexity | 9.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 211.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 149 | |
▷ Static methods | 23 | 15.44% |
▷ Public methods | 142 | 95.30% |
▷ Protected methods | 2 | 1.34% |
▷ Private methods | 5 | 3.36% |
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
PNG images were not found in this plugin