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.02MB] [CPU: ▼7.04ms] Passed 4 tests
This is a short check of server-side resources used by WCMP Cointopay Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.79 ▼2.10 |
Dashboard /wp-admin | 3.34 ▼0.01 | 42.60 ▼18.82 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.83 ▲3.69 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 80.95 ▼8.67 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.71 ▲1.43 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WCMP Cointopay Gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 14.51 ▲0.15 | 2.09 ▲0.27 | 44.94 ▲1.37 |
Dashboard /wp-admin | 2,205 ▲28 | 5.56 ▼0.11 | 81.04 ▼18.43 | 39.30 ▼1.71 |
Posts /wp-admin/edit.php | 2,114 ▲11 | 2.00 ▼0.02 | 36.39 ▼1.52 | 32.89 ▼1.25 |
Add New Post /wp-admin/post-new.php | 1,539 ▲5 | 23.42 ▲5.29 | 667.62 ▲47.09 | 54.07 ▼11.66 |
Media Library /wp-admin/upload.php | 1,410 ▲13 | 4.25 ▲0.02 | 105.16 ▲2.67 | 47.02 ▲5.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wcmp-cointopay-gateway/classes/class-wcmp-cointopay-gateway-payment-method.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: vendor, cointopay gateway, wc marketplace, crypto, commission...
wcmp-cointopay-gateway/wcmp-cointopay-gateway.php Passed 13 tests
"WCMP Cointopay Gateway" version 1.2.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
115 characters long description:
WCMP Cointopay Gateway is a payment gateway for woocommerce shopping plateform also compatible with WC Marketplace.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin862 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 104 | 82 | 632 |
PO File | 1 | 57 | 60 | 166 |
JavaScript | 1 | 5 | 8 | 39 |
Markdown | 1 | 20 | 0 | 25 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 12.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 3 | 12.00% |
▷ Public methods | 23 | 92.00% |
▷ Protected methods | 2 | 8.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/fail.png | 2.15KB | 1.72KB | ▼ 19.99% |
assets/images/cointopay.png | 6.90KB | 2.94KB | ▼ 57.45% |
assets/images/check.png | 2.47KB | 2.29KB | ▼ 7.17% |