Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.80ms] Passed 4 tests
A check of server-side resources used by Payments.GY
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.51 ▲3.92 |
Dashboard /wp-admin | 3.31 ▼0.04 | 41.78 ▼14.39 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.66 ▼2.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.86 ▼12.29 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.27 ▲1.53 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Payments.GY
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.09 ▼0.52 | 1.77 ▲0.05 | 45.46 ▲2.22 |
Dashboard /wp-admin | 2,195 ▲14 | 5.55 ▼0.12 | 84.85 ▼12.10 | 38.44 ▼3.71 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.01 | 32.73 ▼2.34 | 34.92 ▼1.94 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.04 ▼0.01 | 686.09 ▲4.82 | 76.49 ▲25.82 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.19 ▲0.01 | 94.22 ▼3.21 | 43.24 ▼2.62 |
Uninstaller [IO: ▲0.00MB] [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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Congratulations! This plugin passed the SRP test
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 ([https://i.ibb.co/n3102XL/main-screen.png Enter your application name, payments.gy email, password and select environment.]), #2 ([https://i.ibb.co/Bcxzfyc/registered.png Select the merchant wallet attached to your account to start accepting payments.])
woo-paymentsgy/woopaymentsgy.php 85% from 13 tests
The entry point to "Payments.GY" version 1.0.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-paymentsgy.php" instead of "woopaymentsgy.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,608 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 1,113 |
PHP | 11 | 105 | 264 | 429 |
Markdown | 1 | 24 | 0 | 46 |
YAML | 1 | 3 | 0 | 13 |
JavaScript | 1 | 2 | 0 | 7 |
PHP code Passed 2 tests
A short 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.32 |
Average class complexity | 8.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 2 | 10.00% |
▷ Public methods | 19 | 95.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/paymentsgy-logo.png | 12.80KB | 7.50KB | ▼ 41.45% |
assets/images/paymentsgy-icon.png | 5.83KB | 3.49KB | ▼ 40.17% |