Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.76ms] Passed 4 tests
A check of server-side resources used by g-FFL Cockpit
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.99 ▼3.06 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.59 ▼14.61 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.33 ▲2.68 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.10 ▼8.04 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.00 ▲4.38 |
Server storage [IO: ▲2.49MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for g-FFL Cockpit
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.15 ▼0.19 | 1.89 ▲0.13 | 37.49 ▼8.18 |
Dashboard /wp-admin | 2,195 ▲15 | 5.50 ▼0.11 | 91.45 ▲1.60 | 41.34 ▼0.57 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.03 | 37.15 ▲3.21 | 35.30 ▼0.84 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.10 ▲0.15 | 677.98 ▲18.50 | 62.36 ▲7.39 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.21 ▼0.02 | 101.81 ▲3.02 | 42.20 ▼1.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/g-ffl-cockpit/includes/fulfillment_options.php
- > /wp-content/plugins/g-ffl-cockpit/public/partials/ffl-api-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
g-ffl-cockpit/g-ffl-cockpit.php 92% from 13 tests
The principal PHP file in "g-FFL Cockpit" v. 1.2.24 is loaded by WordPress automatically on each request
It is important to fix the following:
- Requires at least: Required version must 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin4,583 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 165 | 614 | 2,776 |
JSON | 1 | 0 | 0 | 911 |
SVG | 1 | 0 | 1 | 748 |
CSS | 3 | 12 | 17 | 80 |
JavaScript | 3 | 18 | 97 | 68 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/ffl-cockpit-logo.png | 7.00KB | 3.92KB | ▼ 43.92% |