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
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.42ms] Passed 4 tests
Analyzing server-side resources used by Gastcoin Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.89 ▼2.42 |
Dashboard /wp-admin | 3.35 ▲0.01 | 56.46 ▼11.40 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 52.38 ▲2.69 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 85.90 ▼16.62 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.47 ▲0.76 |
Server storage [IO: ▲1.87MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Gastcoin Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,065 ▲304 | 14.95 ▲0.31 | 9.38 ▲7.68 | 53.42 ▲10.95 |
Dashboard /wp-admin | 2,353 ▲176 | 6.22 ▲0.53 | 112.48 ▲16.30 | 42.84 ▲2.39 |
Posts /wp-admin/edit.php | 2,287 ▲187 | 3.36 ▲1.37 | 51.48 ▲10.31 | 33.04 ▼4.01 |
Add New Post /wp-admin/post-new.php | 1,548 ▲11 | 23.47 ▲5.29 | 657.29 ▲3.18 | 37.24 ▼37.64 |
Media Library /wp-admin/upload.php | 1,424 ▲21 | 4.08 ▼0.10 | 82.39 ▼13.53 | 40.74 ▼6.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: You are using too many tags: 12 tag instead of maximum 10
gastcoin-gateway/gastcoin.php 85% from 13 tests
The primary PHP file in "Gastcoin Gateway" version 1.9.17 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("gastcoin-gateway.php" instead of "gastcoin.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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 detected2,325 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 256 | 631 | 1,162 |
JavaScript | 5 | 97 | 110 | 747 |
CSS | 3 | 37 | 9 | 315 |
PO File | 1 | 40 | 48 | 101 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 2 | 4.35% |
▷ Public methods | 41 | 89.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.87% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
32 PNG files occupy 0.18MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/card-gastcoin.png | 36.06KB | 16.86KB | ▼ 53.26% |
assets/img/usdt.png | 2.78KB | 1.52KB | ▼ 45.38% |
assets/img/512x512.png | 18.65KB | 11.92KB | ▼ 36.09% |
assets/img/ico-alert.png | 1.13KB | 0.57KB | ▼ 49.35% |
assets/img/coinbasewallet.png | 23.20KB | 13.46KB | ▼ 42.00% |