Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.12ms] Passed 4 tests
Server-side resources used by SkipCash Payment Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 39.70 ▼2.13 |
Dashboard /wp-admin | 3.43 ▲0.12 | 44.46 ▼2.49 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 48.58 ▲5.39 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 93.68 ▼4.16 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.61 ▲0.30 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_skipcash_logs |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for SkipCash Payment Gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.30 ▼1.01 | 2.01 ▲0.23 | 43.36 ▼3.49 |
Dashboard /wp-admin | 2,209 ▲31 | 4.86 ▼0.25 | 112.12 ▲5.47 | 44.52 ▲4.63 |
Posts /wp-admin/edit.php | 2,092 ▲14 | 2.05 ▲0.00 | 40.25 ▼1.46 | 33.77 ▲1.79 |
Add New Post /wp-admin/post-new.php | 1,524 ▼9 | 23.39 ▲0.10 | 673.71 ▲63.85 | 60.52 ▲10.46 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.18 ▼0.01 | 95.08 ▼8.04 | 42.03 ▼1.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_skipcash_logs
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/skipcash-payment-gateway/skipcash.php:777
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/skipcash-payment-gateway/tmpls/pay.php:2
- > 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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: wc, gateway, woocommerce, skipcash, payment
skipcash-payment-gateway/skipcash.php 77% from 13 tests
"SkipCash Payment Gateway" version 2.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.8" instead of "5.6")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("skipcash-payment-gateway.php" instead of "skipcash.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 considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected992 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 113 | 56 | 702 |
JavaScript | 2 | 17 | 15 | 261 |
CSS | 1 | 0 | 8 | 17 |
SVG | 1 | 0 | 1 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 65.00 |
▷ Minimum class complexity | 65.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.36MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 43.65KB | 17.54KB | ▼ 59.81% |
assets/icon-256x256.png | 13.96KB | 5.65KB | ▼ 59.52% |
assets/screenshot-2.png | 143.03KB | 48.07KB | ▼ 66.40% |
assets/screenshot-1.png | 142.36KB | 47.78KB | ▼ 66.44% |
assets/icon-128x128.png | 6.70KB | 3.06KB | ▼ 54.36% |