Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼3.07ms] Passed 4 tests
Server-side resources used by Multi CryptoCurrency Payments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 41.89 ▲2.13 |
Dashboard /wp-admin | 3.46 ▲0.11 | 49.60 ▼16.02 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 49.75 ▼0.08 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 96.74 ▲1.70 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 39.59 ▲3.48 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 31 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_apirone_mccp |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Multi CryptoCurrency Payments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲141 | 14.05 ▼0.00 | 6.42 ▲4.55 | 39.19 ▼4.96 |
Dashboard /wp-admin | 2,223 ▲20 | 5.82 ▼0.03 | 97.47 ▼11.32 | 37.49 ▼1.86 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.05 ▼0.01 | 39.71 ▲1.53 | 37.16 ▲0.69 |
Add New Post /wp-admin/post-new.php | 1,537 ▼8 | 18.22 ▼5.08 | 663.07 ▼35.12 | 69.06 ▲0.88 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.29 ▲0.15 | 111.11 ▼3.40 | 49.96 ▲2.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_apirone_mccp
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/multi-crypto-currency-payment/inc/invoice-class.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/multi-crypto-currency-payment/inc/activate-plugin.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multi-crypto-currency-payment/inc/assets-assign.php:7
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 need to be fixed:
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
- Screenshots: Please describe screenshot #9 in multi-crypto-currency-payment/assets to your readme.txt
multi-crypto-currency-payment/mccp.php 92% from 13 tests
The main PHP file in "Multi CryptoCurrency Payments" ver. 1.2.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("multi-crypto-currency-payment.php" instead of "mccp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,225 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 391 | 419 | 1,562 |
CSS | 4 | 34 | 1 | 543 |
JavaScript | 2 | 7 | 0 | 68 |
SVG | 8 | 0 | 0 | 38 |
JSON | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 24.55 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 4 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 60 | 62.50% |
▷ Public methods | 95 | 98.96% |
▷ Protected methods | 1 | 1.04% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.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
PNG images were not found in this plugin