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.09MB] [CPU: ▼2.81ms] Passed 4 tests
This is a short check of server-side resources used by Dagpay for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.10 | 40.94 ▼8.58 |
Dashboard /wp-admin | 3.40 ▲0.10 | 49.46 ▼0.52 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 45.70 ▼1.10 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 91.43 ▲0.80 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.69 ▼1.02 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Dagpay for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.63 ▼0.79 | 4.52 ▲2.52 | 43.40 ▼1.21 |
Dashboard /wp-admin | 2,203 ▲15 | 5.79 ▲0.88 | 100.02 ▼16.16 | 38.86 ▼10.20 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.02 | 34.27 ▼0.99 | 29.80 ▼5.56 |
Add New Post /wp-admin/post-new.php | 1,539 ▲25 | 23.11 ▲5.47 | 630.93 ▲21.74 | 50.05 ▲6.13 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.20 ▼0.02 | 96.78 ▼4.82 | 39.59 ▼4.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
7 plugin tags: payments, dagpay, merchants, merchant, cryptocurrency...
dagpay-for-woocommerce/dagcoin.php 92% from 13 tests
This is the main PHP file of "Dagpay for WooCommerce" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("dagpay-for-woocommerce.php" instead of "dagcoin.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
Success! There were no dangerous files found in this plugin1,658 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 216 | 321 | 956 |
Markdown | 3 | 135 | 0 | 610 |
JSON | 3 | 0 | 0 | 71 |
SVG | 1 | 0 | 1 | 21 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 3 | 4.48% |
▷ Public methods | 53 | 79.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 20.90% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin