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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.04ms] Passed 4 tests
An overview of server-side resources used by Paystack Gateway for Sprout Invoices
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.99 ▼1.65 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.56 ▼1.38 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.20 ▼2.94 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.87 ▼2.17 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 38.09 ▲2.36 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Paystack Gateway for Sprout Invoices
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲25 | 13.26 ▼0.06 | 2.04 ▲0.38 | 42.27 ▲1.64 |
Dashboard /wp-admin | 2,206 ▼0 | 4.89 ▲0.05 | 109.03 ▲10.38 | 43.37 ▲3.81 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.03 | 40.38 ▲4.32 | 36.48 ▲2.66 |
Add New Post /wp-admin/post-new.php | 1,533 ▼1 | 23.39 ▲0.34 | 599.15 ▼112.61 | 50.72 ▼13.78 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.25 ▲0.00 | 95.94 ▼4.42 | 47.03 ▲3.11 |
Uninstaller [IO: ✅] [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
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'SI_Credit_Card_Processors' not found in wp-content/plugins/paystack-sprout-invoices/SI_Paystack.php:41
- > PHP Fatal error
Uncaught Error: Class 'SI_Updates' not found in wp-content/plugins/paystack-sprout-invoices/SI_Updates.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/paystack-sprout-invoices/sprout-invoices-paystack-payments.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #1 (The slick Paystack settings panel.) image required
paystack-sprout-invoices/sprout-invoices-paystack-payments.php 92% from 13 tests
"Paystack Gateway for Sprout Invoices" version 3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("paystack-sprout-invoices.php" instead of "sprout-invoices-paystack-payments.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected416 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 98 | 83 | 416 |
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.19 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 14 | 58.33% |
▷ Public methods | 18 | 75.00% |
▷ Protected methods | 1 | 4.17% |
▷ Private methods | 5 | 20.83% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 5 | 22.73% |
▷ Class constants | 17 | 77.27% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin