Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.00ms] Passed 4 tests
Analyzing server-side resources used by SmartPayLive
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.14 ▼2.58 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.60 ▼1.35 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.55 ▼7.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.80 ▼16.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.22 ▲2.94 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
SmartPayLive: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲29 | 13.74 ▼0.65 | 1.93 ▼0.55 | 45.74 ▼3.80 |
Dashboard /wp-admin | 2,218 ▲12 | 5.80 ▲0.72 | 101.41 ▼0.49 | 36.03 ▼7.55 |
Posts /wp-admin/edit.php | 2,100 ▼6 | 2.00 ▼0.05 | 35.25 ▼9.31 | 33.53 ▼1.56 |
Add New Post /wp-admin/post-new.php | 1,545 ▼0 | 23.24 ▲0.25 | 694.91 ▲20.12 | 56.11 ▲9.99 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.05 | 97.73 ▼19.53 | 41.92 ▼4.05 |
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
The following items require your attention
- This plugin does not fully uninstall, 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 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/smartpaylive/includes/class-wc-gateway-smartpaylive.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: woocommerce, internet banking, south africa, smartpaylive, payment request...
smartpaylive/smartpaylive.php Passed 13 tests
This is the main PHP file of "SmartPayLive" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
104 characters long description:
A World-Class, Innovative, Direct Merchanting Bank to Bank Instant EFT Payment Solution in South Africa.
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
Everything looks great! No dangerous files found in this plugin373 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 47 | 164 | 373 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 42.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 57.14% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 13.74KB | 7.55KB | ▼ 45.04% |