Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.22ms] Passed 4 tests
An overview of server-side resources used by RocketFuel - RocketFuel Payment Method for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.95 ▼2.04 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.17 ▼3.96 |
Posts /wp-admin/edit.php | 3.37 ▲0.00 | 41.30 ▼3.85 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.00 | 78.11 ▼11.02 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 36.83 ▲4.44 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for RocketFuel - RocketFuel Payment Method for Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.35 ▼0.20 | 1.63 ▲0.19 | 37.22 ▼2.42 |
Dashboard /wp-admin | 2,202 ▲21 | 5.57 ▼0.14 | 80.41 ▼17.68 | 37.96 ▼4.81 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.01 | 34.73 ▼1.32 | 36.05 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.11 ▼0.02 | 667.31 ▲20.32 | 64.78 ▲9.99 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.23 ▼0.02 | 106.58 ▲5.18 | 46.99 ▲2.07 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/rocketfuel-payment-gateway/rocketfuel-woo-gateway.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/rocketfuel-payment-gateway/Controllers/Rocketfuel_Gateway_Controller.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (banner-1544x500.png), #2 (icon-128x128.png)
rocketfuel-payment-gateway/rocketfuel-woo-gateway.php 77% from 13 tests
The main PHP file in "RocketFuel - RocketFuel Payment Method for Woocommerce" ver. 3.2.1.32 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Domain Path: Use only dashes and lowercase characters for the domain path ("/Languages/")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.8" instead of "3.0.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rocketfuel-payment-gateway.php" instead of "rocketfuel-woo-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin6,146 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 663 | 742 | 2,544 |
JSON | 2 | 0 | 0 | 2,252 |
JavaScript | 4 | 405 | 163 | 1,049 |
CSS | 2 | 64 | 6 | 272 |
SVG | 2 | 0 | 2 | 29 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 21.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 124 | |
▷ Static methods | 79 | 63.71% |
▷ Public methods | 117 | 94.35% |
▷ Protected methods | 2 | 1.61% |
▷ Private methods | 5 | 4.03% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo.png | 0.64KB | 0.40KB | ▼ 37.75% |