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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.29ms] Passed 4 tests
An overview of server-side resources used by 8Pay Payment Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.02 | 43.66 ▲0.03 |
Dashboard /wp-admin | 3.59 ▲0.02 | 49.72 ▼7.67 |
Posts /wp-admin/edit.php | 3.70 ▲0.02 | 54.54 ▼1.87 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.02 | 88.51 ▼15.65 |
Media Library /wp-admin/upload.php | 3.51 ▲0.02 | 41.49 ▲3.76 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for 8Pay Payment Gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.27 ▼0.11 | 1.82 ▲0.05 | 43.96 ▲3.36 |
Dashboard /wp-admin | 2,199 ▲19 | 5.54 ▼0.15 | 88.76 ▼3.63 | 42.76 ▼3.68 |
Posts /wp-admin/edit.php | 2,110 ▲7 | 1.98 ▼0.05 | 46.66 ▲5.84 | 33.11 ▼7.43 |
Add New Post /wp-admin/post-new.php | 1,552 ▲21 | 23.45 ▲0.42 | 681.36 ▼8.00 | 53.78 ▼4.91 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.20 ▲0.01 | 100.15 ▼9.76 | 44.67 ▼2.08 |
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
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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 on the user side
Optimizations
Plugin configuration Passed 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
3 plugin tags: crypto, payment, 8pay
8pay-payment-gateway/8pay-payment-gateway.php Passed 13 tests
This is the main PHP file of "8Pay Payment Gateway" version 1.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
46 characters long description:
Take crypto payments on your store using 8Pay.
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
No dangerous file extensions were detected1,548 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 223 | 306 | 1,391 |
SVG | 14 | 0 | 2 | 96 |
CSS | 1 | 6 | 0 | 34 |
JavaScript | 1 | 1 | 0 | 27 |
PHP code Passed 2 tests
An overview 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.31 |
Average class complexity | 6.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 15 | 34.88% |
▷ Public methods | 43 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 4 | 36.36% |
▷ Anonymous functions | 7 | 63.64% |
Constants | 26 | |
▷ Global constants | 5 | 19.23% |
▷ Class constants | 21 | 80.77% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/icon.png | 1.70KB | 1.51KB | ▼ 11.47% |