Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.05ms] Passed 4 tests
This is a short check of server-side resources used by Conditional Payment Gateways for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.35 ▼15.42 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.21 ▼3.35 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.69 ▼1.82 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.61 ▼11.60 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.25 ▲0.37 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Conditional Payment Gateways for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.57 ▼0.79 | 4.06 ▲2.19 | 38.14 ▼4.73 |
Dashboard /wp-admin | 2,206 ▲15 | 4.84 ▼0.03 | 106.45 ▼1.37 | 38.03 ▼4.21 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.02 | 39.47 ▲0.30 | 33.69 ▼1.42 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.59 ▼0.73 | 670.93 ▲63.16 | 66.41 ▼2.50 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.17 ▼0.06 | 92.48 ▼8.02 | 40.74 ▼3.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: woo commerce, payment gateway, woocommerce
conditional-payment-gateways-for-woocommerce/conditional-payment-gateways-for-woocommerce.php Passed 13 tests
The entry point to "Conditional Payment Gateways for WooCommerce" version 2.1.3 is a PHP file that has certain tags in its header comment area
52 characters long description:
Manage payment gateways in WooCommerce. Beautifully.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,087 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 221 | 961 | 1,087 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 12.46 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 1 | 8.33% |
Methods | 121 | |
▷ Static methods | 1 | 0.83% |
▷ Public methods | 121 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin