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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.66ms] Passed 4 tests
A check of server-side resources used by Credo WooCommerce Payment Gateway
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 37.93 ▲2.29 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.76 ▼0.58 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 42.68 ▼3.84 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 79.06 ▼10.52 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.76 ▼7.71 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Credo WooCommerce Payment Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.04 ▼0.58 | 2.16 ▲0.61 | 45.61 ▲8.40 |
Dashboard /wp-admin | 2,199 ▲21 | 5.55 ▼0.15 | 83.78 ▼29.78 | 39.59 ▼2.46 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.01 ▼0.01 | 35.09 ▼3.28 | 30.99 ▼2.99 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 22.96 ▼0.13 | 648.63 ▼56.84 | 51.68 ▼5.86 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.20 ▲0.09 | 109.08 ▼1.19 | 46.58 ▼3.80 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 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
5 plugin tags: payment gateway mastercard, verve, woocommerce, credo, visa
credo-payment-forms/woo-credo.php 77% from 13 tests
"Credo WooCommerce Payment Gateway" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires at least: The required version number must match the one declared in readme.txt ("5.8" instead of "7.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("credo-payment-forms.php" instead of "woo-credo.php")
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
Good job! No executable or dangerous file extensions detected1,084 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 407 | 270 | 844 |
JavaScript | 4 | 77 | 9 | 240 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 91.00 |
▷ Minimum class complexity | 91.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 5.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 85.71% |
▷ Protected methods | 2 | 9.52% |
▷ Private methods | 1 | 4.76% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
36 PNG files occupy 0.55MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/suntrust.png | 2.62KB | 2.38KB | ▼ 9.00% |
assets/images/jaiz.png | 1.59KB | 1.42KB | ▼ 10.98% |
assets/images/standard.png | 18.86KB | 6.70KB | ▼ 64.48% |
assets/images/visa.png | 9.35KB | 3.12KB | ▼ 66.66% |
assets/images/stanbic.png | 14.82KB | 4.98KB | ▼ 66.41% |