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.02MB] [CPU: ▼1.38ms] Passed 4 tests
This is a short check of server-side resources used by Conpay Checkout
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.10 ▼7.58 |
Dashboard /wp-admin | 3.33 ▲0.02 | 54.17 ▲1.63 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 54.93 ▼1.29 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.15 ▲1.72 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.47 ▲3.57 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Conpay Checkout
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲48 | 13.33 ▲0.17 | 1.88 ▼3.11 | 42.29 ▼3.12 |
Dashboard /wp-admin | 2,218 ▲15 | 4.83 ▲0.01 | 107.08 ▼10.89 | 41.05 ▲0.20 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.02 ▼0.00 | 41.99 ▲0.98 | 38.15 ▲1.76 |
Add New Post /wp-admin/post-new.php | 1,532 ▼10 | 23.28 ▲5.16 | 772.83 ▲161.52 | 55.68 ▲6.37 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.25 ▲0.05 | 96.63 ▼21.35 | 43.49 ▼3.65 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: payment, checkout, woocommerce, conpay
conpay-checkout/woocommerce-conpay.php 77% from 13 tests
"Conpay Checkout" version 1.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("conpay-checkout.php" instead of "woocommerce-conpay.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "3.0.0")
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
Success! There were no dangerous files found in this plugin987 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 255 | 205 | 826 |
JavaScript | 2 | 43 | 12 | 104 |
CSS | 1 | 11 | 0 | 57 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 9 | 24.32% |
▷ Public methods | 27 | 72.97% |
▷ Protected methods | 6 | 16.22% |
▷ Private methods | 4 | 10.81% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 2 | 33.33% |
▷ Class constants | 4 | 66.67% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/brazilian-flag.png | 4.32KB | 0.97KB | ▼ 77.62% |
assets/images/logo-md-light.png | 7.31KB | 3.24KB | ▼ 55.63% |
assets/images/conpay.png | 1.50KB | 1.44KB | ▼ 3.72% |