Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼2.97ms] Passed 4 tests
Analyzing server-side resources used by Gravity Forms Toolbar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.11 | 44.10 ▼5.19 |
Dashboard /wp-admin | 3.47 ▲0.17 | 45.63 ▼4.29 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 48.31 ▼4.41 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 96.44 ▲4.73 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 37.65 ▲2.01 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gravity Forms Toolbar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.55 ▼0.84 | 1.70 ▼0.20 | 42.72 ▼3.78 |
Dashboard /wp-admin | 2,212 ▲24 | 4.85 ▼1.01 | 99.47 ▼17.43 | 38.60 ▼4.41 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.02 | 39.56 ▲3.22 | 34.74 ▲0.32 |
Add New Post /wp-admin/post-new.php | 1,541 ▲7 | 23.36 ▲0.27 | 595.96 ▼52.04 | 51.10 ▼2.06 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▲0.01 | 93.86 ▼7.14 | 42.06 ▼4.69 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
The following issues need your attention
- 15× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/gravity-forms-toolbar/admin/form.php
- > /wp-content/plugins/gravity-forms-toolbar/lib/gftb-resources.php
- > /wp-content/plugins/gravity-forms-toolbar/lib/gftb-admin-extras.php
- > /wp-content/plugins/gravity-forms-toolbar/gravity-forms-toolbar.php
- > /wp-content/plugins/gravity-forms-toolbar/lib/gftb-addons.php
- > /wp-content/plugins/gravity-forms-toolbar/lib/gftb-languages.php
- > /wp-content/plugins/gravity-forms-toolbar/admin/tabs/settings.php
- > /wp-content/plugins/gravity-forms-toolbar/lib/gftb-admin-settings.php
- > /wp-content/plugins/gravity-forms-toolbar/lib/gftb-plugins.php
- > /wp-content/plugins/gravity-forms-toolbar/lib/gftb-functions.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
gravity-forms-toolbar/gravity-forms-toolbar.php Passed 13 tests
"Gravity Forms Toolbar" version 1.7.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
105 characters long description:
This plugin adds useful admin links and resources for Gravity Forms to the WordPress Toolbar / Admin Bar.
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 plugin5,179 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 887 | 1,296 | 2,968 |
PO File | 4 | 1,020 | 1,148 | 2,211 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.74 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 39 | |
▷ Named functions | 39 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 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
9 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/gravityforms-icon-lightgrey.png | 0.95KB | 0.83KB | ▼ 12.76% |
images/gravityforms-icon-turquoise.png | 0.80KB | 0.83KB | 0.00% |
images/gravityforms-icon-pink.png | 0.97KB | 0.83KB | ▼ 15.33% |
images/gravityforms-icon-red.png | 0.93KB | 0.83KB | ▼ 11.43% |
images/gravityforms-icon.png | 1.02KB | 1.02KB | 0.00% |