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 gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.61ms] Passed 4 tests
A check of server-side resources used by FFL API WooCommerce Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.94 ▲0.13 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.13 ▼6.90 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.71 ▼7.93 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.31 ▼8.11 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.51 ▼3.48 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 117 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for FFL API WooCommerce Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▼0.19 | 1.71 ▲0.02 | 47.94 ▲3.78 |
Dashboard /wp-admin | 2,195 ▲15 | 5.59 ▼0.01 | 92.91 ▲6.91 | 42.78 ▲3.25 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.01 | 40.04 ▲4.71 | 36.00 ▲1.84 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.28 ▼0.21 | 608.49 ▼25.41 | 63.01 ▲7.73 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.16 ▲0.01 | 96.24 ▼4.95 | 39.63 ▼3.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
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)
Good news, no errors were detected
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/ffl-api/admin/partials/ffl-api-admin-display.php
- > /wp-content/plugins/ffl-api/public/partials/ffl-api-public-display.php
- > /wp-content/plugins/ffl-api/wp-dynamic-css/bootstrap.php
- 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ffl-api/includes/class-ffl-api.php:244
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p8_Vcs_Api' not found in wp-content/plugins/ffl-api/plugin-update-checker/Puc/v4p8/Vcs/GitHubApi.php:5
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p8_Update' not found in wp-content/plugins/ffl-api/plugin-update-checker/Puc/v4p8/Plugin/Update.php:11
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p8_UpdateChecker' not found in wp-content/plugins/ffl-api/plugin-update-checker/Puc/v4p8/Plugin/UpdateChecker.php:11
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p8_Theme_UpdateChecker' not found in wp-content/plugins/ffl-api/plugin-update-checker/Puc/v4p8/Vcs/ThemeUpdateChecker.php:5
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p8_Plugin_UpdateChecker' not found in wp-content/plugins/ffl-api/plugin-update-checker/Puc/v4p8/Vcs/PluginUpdateChecker.php:4
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p8_Metadata' not found in wp-content/plugins/ffl-api/plugin-update-checker/Puc/v4p8/Update.php:10
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p8_InstalledPackage' not found in wp-content/plugins/ffl-api/plugin-update-checker/Puc/v4p8/Theme/Package.php:4
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p8_DebugBar_Panel' not found in wp-content/plugins/ffl-api/plugin-update-checker/Puc/v4p8/DebugBar/PluginPanel.php:5
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p8_Vcs_Api' not found in wp-content/plugins/ffl-api/plugin-update-checker/Puc/v4p8/Vcs/BitBucketApi.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
8 plugin tags: ecommerce checkout, woocommerce, google maps, map api, gun dealer...
ffl-api/ffl-api.php 92% from 13 tests
The main PHP file in "FFL API WooCommerce Plugin" ver. 1.6.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- 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 detected7,894 lines of code in 88 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 1,812 | 3,143 | 6,477 |
PO File | 16 | 92 | 95 | 532 |
Markdown | 2 | 183 | 0 | 530 |
JavaScript | 4 | 69 | 38 | 164 |
CSS | 4 | 14 | 5 | 96 |
JSON | 5 | 8 | 0 | 95 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 19.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 2.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 5 | 11.11% |
▷ Concrete classes | 40 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 452 | |
▷ Static methods | 29 | 6.42% |
▷ Public methods | 269 | 59.51% |
▷ Protected methods | 164 | 36.28% |
▷ Private methods | 19 | 4.20% |
Functions | 19 | |
▷ Named functions | 18 | 94.74% |
▷ Anonymous functions | 1 | 5.26% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.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
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/ffl-logo.png | 17.42KB | 11.79KB | ▼ 32.30% |
admin/images/example.png | 42.16KB | 12.28KB | ▼ 70.88% |