Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.65ms] Passed 4 tests
Server-side resources used by Flutterwave WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.73 ▲2.17 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.78 ▲1.23 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.93 ▼5.76 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.24 ▼11.87 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.93 ▼2.19 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Flutterwave WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.68 ▲0.33 | 1.67 ▲0.01 | 43.31 ▼1.00 |
Dashboard /wp-admin | 2,204 ▲24 | 5.57 ▼0.02 | 84.67 ▼6.15 | 37.47 ▼8.91 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.01 ▼0.01 | 34.87 ▼7.55 | 35.28 ▼8.45 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.24 ▼0.04 | 685.82 ▼41.02 | 60.29 ▲1.11 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.25 ▲0.07 | 96.52 ▲0.47 | 41.23 ▼4.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- 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
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant FLW_WC_DIR_PATH - assumed 'FLW_WC_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/rave-woocommerce-payment-gateway/includes/class-flw-wc-payment-gateway-event-handler.php on line 16
- > PHP Fatal error
require(): Failed opening required 'FLW_WC_DIR_PATHincludes/contracts/class-flw-wc-payment-gateway-event-handler-interface.php' (include_path='.:/usr/share/php') in wp-content/plugins/rave-woocommerce-payment-gateway/includes/class-flw-wc-payment-gateway-event-handler.php on line 16
- > PHP Warning
require(FLW_WC_DIR_PATHincludes/contracts/class-flw-wc-payment-gateway-event-handler-interface.php): failed to open stream: No such file or directory in wp-content/plugins/rave-woocommerce-payment-gateway/includes/class-flw-wc-payment-gateway-event-handler.php on line 16
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% 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:
- Tags: There are too many tags (17 tag instead of maximum 10)
rave-woocommerce-payment-gateway/rave-woocommerce-payment-gateway.php 85% from 13 tests
This is the main PHP file of "Flutterwave WooCommerce" version 2.3.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.1" instead of "7.1")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("i18n/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,623 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 313 | 822 | 1,189 |
JavaScript | 15 | 62 | 77 | 395 |
SVG | 7 | 0 | 1 | 22 |
CSS | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 10.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 4 | 44.44% |
Methods | 74 | |
▷ Static methods | 7 | 9.46% |
▷ Public methods | 67 | 90.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 9.46% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 16 | |
▷ Global constants | 14 | 87.50% |
▷ Class constants | 2 | 12.50% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/screen3.PNG | 40.15KB | 18.46KB | ▼ 54.02% |
assets/img/screen1.PNG | 53.35KB | 27.62KB | ▼ 48.24% |
assets/img/rave.png | 9.37KB | 4.10KB | ▼ 56.23% |
assets/img/screen2.PNG | 46.75KB | 21.12KB | ▼ 54.83% |