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.67MB] [CPU: ▼14.87ms] Passed 4 tests
A check of server-side resources used by Gr8Pay Payment Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.96 ▼2.64 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.83 ▼0.66 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.37 ▲2.38 |
Add New Post /wp-admin/post-new.php | 3.19 ▼2.70 | 34.76 ▼58.54 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.09 ▲3.22 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Gr8Pay Payment Gateway
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.57 ▼0.86 | 1.95 ▼0.42 | 43.65 ▼1.85 |
Dashboard /wp-admin | 2,206 ▲18 | 5.88 ▲0.98 | 95.87 ▼7.92 | 35.64 ▼2.97 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.04 ▼0.01 | 33.98 ▼7.15 | 33.27 ▼3.27 |
Add New Post /wp-admin/post-new.php | 1,542 ▲4 | 23.09 ▼0.03 | 639.65 ▲21.28 | 57.22 ▲12.06 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.21 ▲0.01 | 94.59 ▼9.58 | 40.63 ▼1.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gr8pay-payment-gateway/index.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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
9 plugin tags: sales, store, sell, cart, shop...
gr8pay-payment-gateway/index.php 85% from 13 tests
The main PHP script in "Gr8Pay Payment Gateway" version 1.1.5 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Name the main plugin file the same as the plugin slug ("gr8pay-payment-gateway.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected427 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 57 | 52 | 349 |
PO File | 1 | 30 | 31 | 78 |
PHP code Passed 2 tests
This is a very shot 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.23 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 18.18% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.54MB with 0.28MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Design 1 small.png | 199.32KB | 65.92KB | ▼ 66.93% |
Design 1 small amex.png | 199.32KB | 65.92KB | ▼ 66.93% |
Payment-options-from-Carus-Jewellery-.png | 11.55KB | 11.55KB | 0.03% |
Design 2 small no amex.png | 144.04KB | 41.56KB | ▼ 71.15% |