Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.46ms] Passed 4 tests
Server-side resources used by Payment Gateway for peg63.546u Copper on WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 38.30 ▲1.88 |
Dashboard /wp-admin | 3.31 ▲0.01 | 52.36 ▲2.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.38 ▼7.79 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 99.52 ▼9.12 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.69 ▼6.80 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 84 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Payment Gateway for peg63.546u Copper on WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲76 | 13.26 ▼1.16 | 2.14 ▲0.33 | 39.37 ▼8.36 |
Dashboard /wp-admin | 2,217 ▲29 | 4.87 ▼0.98 | 111.19 ▲3.50 | 45.81 ▲1.25 |
Posts /wp-admin/edit.php | 2,099 ▲7 | 2.00 ▼0.06 | 39.44 ▼8.40 | 36.89 ▼2.91 |
Add New Post /wp-admin/post-new.php | 1,525 ▲1 | 17.72 ▼5.56 | 717.60 ▲10.94 | 65.09 ▲10.89 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.19 ▼0.02 | 108.54 ▼1.75 | 48.98 ▲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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Exception: Cannot use BigInteger. Neither gmp nor bcmath module is loaded in wp-content/plugins/wc-cu-copper-payment-gateway/lib/Elliptic/BigInteger.php:14
- > PHP Fatal error
Uncaught Exception: Cannot use BigInteger. Neither gmp nor bcmath module is loaded in wp-content/plugins/wc-cu-copper-payment-gateway/lib/Elliptic/BigInteger.php:14
- > PHP Fatal error
Uncaught Exception: Cannot use BigInteger. Neither gmp nor bcmath module is loaded in wp-content/plugins/wc-cu-copper-payment-gateway/lib/Elliptic/BigInteger.php:14
- > PHP Fatal error
Uncaught Error: Class 'Elliptic\\Curve\\BaseCurve\\Point' not found in wp-content/plugins/wc-cu-copper-payment-gateway/lib/Elliptic/Curve/EdwardsCurve/Point.php:6
- > PHP Fatal error
Uncaught Error: Class 'Elliptic\\Curve\\BaseCurve\\Point' not found in wp-content/plugins/wc-cu-copper-payment-gateway/lib/Elliptic/Curve/MontCurve/Point.php:7
- > PHP Fatal error
Uncaught Error: Class 'Elliptic\\Curve\\BaseCurve\\Point' not found in wp-content/plugins/wc-cu-copper-payment-gateway/lib/Elliptic/Curve/EdwardsCurve/Point.php:6
- > PHP Fatal error
Uncaught Error: Interface 'React\\EventLoop\\LoopInterface' not found in wp-content/plugins/wc-cu-copper-payment-gateway/vendor/react/event-loop/src/ExtEventLoop.php:23
- > PHP Fatal error
Uncaught Error: Class 'Elliptic\\Curve\\BaseCurve\\Point' not found in wp-content/plugins/wc-cu-copper-payment-gateway/lib/Elliptic/Curve/ShortCurve/Point.php:8
- > PHP Fatal error
Uncaught Exception: Cannot use BigInteger. Neither gmp nor bcmath module is loaded in wp-content/plugins/wc-cu-copper-payment-gateway/lib/Elliptic/BigInteger.php:14
- > PHP Fatal error
Uncaught Error: Interface 'React\\EventLoop\\LoopInterface' not found in wp-content/plugins/wc-cu-copper-payment-gateway/vendor/react/event-loop/src/ExtLibeventLoop.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: gateway, token, woocommerce, payment, ethereum...
wc-cu-copper-payment-gateway/cu-copper-payment-gateway.php 77% from 13 tests
"Payment Gateway for peg63.546u Copper on WooCommerce" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-cu-copper-payment-gateway.php" instead of "cu-copper-payment-gateway.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("5.5" instead of "5.5.1")
- 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin13,534 lines of code in 77 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 60 | 1,852 | 1,635 | 11,701 |
Markdown | 4 | 364 | 0 | 1,026 |
JSON | 5 | 0 | 0 | 350 |
JavaScript | 2 | 41 | 12 | 229 |
Sass | 1 | 16 | 1 | 82 |
YAML | 3 | 13 | 0 | 61 |
CSS | 1 | 1 | 4 | 56 |
XML | 1 | 4 | 0 | 29 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 26.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 2 | 4.76% |
▷ Concrete classes | 40 | 95.24% |
▷ Final classes | 14 | 35.00% |
Methods | 631 | |
▷ Static methods | 123 | 19.49% |
▷ Public methods | 583 | 92.39% |
▷ Protected methods | 3 | 0.48% |
▷ Private methods | 45 | 7.13% |
Functions | 117 | |
▷ Named functions | 87 | 74.36% |
▷ Anonymous functions | 30 | 25.64% |
Constants | 23 | |
▷ Global constants | 10 | 43.48% |
▷ Class constants | 13 | 56.52% |
▷ Public constants | 4 | 30.77% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin