Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.32ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce CloudSwipe Payments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.04 ▲0.28 |
Dashboard /wp-admin | 3.31 ▲0.01 | 42.72 ▼6.30 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.65 ▼3.52 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.06 ▼11.09 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 32.09 ▼0.38 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce CloudSwipe Payments
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.24 ▼1.44 | 5.16 ▲3.42 | 42.93 ▼0.83 |
Dashboard /wp-admin | 2,209 ▲18 | 5.83 ▲0.93 | 97.04 ▼8.62 | 38.52 ▼7.54 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.03 ▼0.03 | 35.06 ▼0.28 | 32.93 ▼3.73 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.28 ▲0.09 | 594.25 ▼47.20 | 54.55 ▼7.32 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.22 ▲0.01 | 96.85 ▼5.16 | 43.21 ▲1.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
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 | 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
Please fix the following items
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
include(/Users/joey/Sites/wp/wp-load.php): failed to open stream: No such file or directory in wp-content/plugins/woo-cloudswipe-payments/vendor/joeybeninghove/json-api-wp-client/tests/create-test.php on line 3
- > PHP Warning
include(): Failed opening '/Users/joey/Sites/wp/wp-load.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/woo-cloudswipe-payments/vendor/cloudswipe/cloudswipe-wp/tests/wordpress-test.php on line 3
- > PHP Warning
require(wp-content/plugins/woo-cloudswipe-payments/vendor/cloudswipe/cloudswipe-wp/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/woo-cloudswipe-payments/vendor/cloudswipe/cloudswipe-wp/tests/wordpress-test.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'CloudSwipe_Wp_Resource' not found in wp-content/plugins/woo-cloudswipe-payments/vendor/cloudswipe/cloudswipe-wp/src/class-cloudswipe-wp-invoice.php:3
- > PHP Warning
include(/Users/joey/Sites/wp/wp-load.php): failed to open stream: No such file or directory in wp-content/plugins/woo-cloudswipe-payments/vendor/cloudswipe/cloudswipe-wp/tests/wordpress-test.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-cloudswipe-payments/includes/class-cloudswipe-wc-slurp-tweaker.php:25
- > PHP Fatal error
Uncaught Error: Class 'Json_Api_Wp_Resource' not found in wp-content/plugins/woo-cloudswipe-payments/vendor/cloudswipe/cloudswipe-wp/src/class-cloudswipe-wp-resource.php:3
- > PHP Fatal error
Uncaught Error: Class 'CloudSwipe_Wp_Invoice' not found in wp-content/plugins/woo-cloudswipe-payments/includes/class-cloudswipe-wc-invoice.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woo-cloudswipe-payments/includes/class-wc-gateway-cloudswipe.php:3
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/woo-cloudswipe-payments/vendor/cloudswipe/cloudswipe-wp/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-cloudswipe-payments/vendor/cloudswipe/cloudswipe-wp/tests/wordpress-test.php on line 5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 15 tag instead of maximum 10
woo-cloudswipe-payments/woocommerce-gateway-cloudswipe.php 92% from 13 tests
This is the main PHP file of "WooCommerce CloudSwipe Payments" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("woo-cloudswipe-payments.php" instead of "woocommerce-gateway-cloudswipe.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,394 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 233 | 231 | 1,038 |
Markdown | 2 | 34 | 0 | 160 |
JSON | 4 | 0 | 0 | 152 |
PO File | 1 | 14 | 16 | 44 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 1 | 4.35% |
Methods | 97 | |
▷ Static methods | 34 | 35.05% |
▷ Public methods | 95 | 97.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.06% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin