Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼11.07ms] Passed 4 tests
A check of server-side resources used by g-FFL Checkout
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.40 ▼0.93 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.88 ▼19.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.56 ▼4.93 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.38 ▼12.77 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.77 ▼6.84 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for g-FFL Checkout
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.28 ▲0.09 | 1.60 ▼0.13 | 41.14 ▲1.20 |
Dashboard /wp-admin | 2,195 ▲21 | 5.56 ▼0.02 | 84.81 ▼1.60 | 40.93 ▲1.27 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.06 | 37.89 ▼2.20 | 36.83 ▼1.47 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 18.24 ▼4.87 | 624.64 ▼43.28 | 73.53 ▲19.65 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▲0.13 | 99.51 ▼18.80 | 42.08 ▼7.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/g-ffl-checkout/includes/ffl_ordering.php
- > /wp-content/plugins/g-ffl-checkout/public/partials/ffl-api-public-display.php
- > /wp-content/plugins/g-ffl-checkout/admin/partials/ffl-api-admin-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/g-ffl-checkout/includes/class-ffl-api.php:244
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: ecommerce checkout, ffl gun dealers, woocommerce, map api, ffl...
g-ffl-checkout/g-ffl-api.php 77% from 13 tests
The main PHP script in "g-FFL Checkout" version 1.4.15 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("g-ffl-checkout.php" instead of "g-ffl-api.php")
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "3.0.0")
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
Good job! No executable or dangerous file extensions detected3,245 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 200 | 580 | 2,328 |
PHP | 14 | 229 | 593 | 917 |
CSS | 1 | 0 | 4 | 0 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 5.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.29MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/example3.png | 91.98KB | 88.30KB | ▼ 4.00% |
public/includes/images/ffl_required.png | 40.56KB | 10.62KB | ▼ 73.82% |
admin/images/example2.png | 33.59KB | 29.67KB | ▼ 11.69% |
admin/images/ffl-logo.png | 7.76KB | 4.29KB | ▼ 44.65% |
admin/images/example1.png | 72.88KB | 21.62KB | ▼ 70.33% |