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
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼307.69ms] Passed 4 tests
An overview of server-side resources used by GFireM Fields
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 56.08 ▲3.11 |
Dashboard /wp-admin | 3.41 ▲0.01 | 47.55 ▼12.63 |
Posts /wp-admin/edit.php | 3.64 ▲0.01 | 39.20 ▼1.51 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 94.08 ▼1,214.02 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 25.53 ▼2.61 |
Server storage [IO: ▲1.74MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 220 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_debug_mode |
fs_api_cache |
fs_active_plugins |
fs_accounts |
Browser metrics Passed 4 tests
An overview of browser requirements for GFireM Fields
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,853 ▲131 | 15.57 ▼0.11 | 6.63 ▲1.04 | 2.58 ▲0.37 |
Dashboard /wp-admin | 2,881 ▲23 | 6.01 ▼0.23 | 119.74 ▼15.95 | 162.52 ▼4.78 |
Posts /wp-admin/edit.php | 2,688 ▼6 | 3.24 ▲0.00 | 64.61 ▼31.42 | 143.68 ▼23.35 |
Add New Post /wp-admin/post-new.php | 1,711 ▲40 | 21.46 ▲0.64 | 468.15 ▲6.86 | 179.25 ▲11.35 |
Media Library /wp-admin/upload.php | 1,695 ▼6 | 5.51 ▲0.02 | 143.96 ▼9.94 | 227.47 ▲38.70 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 4 options in the database
- fs_api_cache
- fs_active_plugins
- fs_debug_mode
- fs_accounts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gfirem-fields/classes/fields/user_list/view/field_front_view.php
- > /wp-content/plugins/gfirem-fields/classes/include/freemius/templates/ajax-loader.php
- 25× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: field in wp-content/plugins/gfirem-fields/classes/fields/user_list/view/field_front_view.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/gfirem-fields/templates/_register_settings.php:4
- > PHP Fatal error
Uncaught Error: Class 'gfirem_field_base' not found in wp-content/plugins/gfirem-fields/classes/fields/switch_button/switch_button.php:12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gfirem-fields/classes/fields/user_list/view/field_front_view.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'gfirem_field_base' not found in wp-content/plugins/gfirem-fields/classes/fields/autocomplete/autocomplete.php:12
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/gfirem-fields/classes/fields/user_list/view/field_front_view.php on line 13
- > PHP Warning
include_once(GFIREM_VIEW_PATHhtml_admin_head.php): failed to open stream: No such file or directory in wp-content/plugins/gfirem-fields/view/html_admin.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/gfirem-fields/view/html_admin.php:17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gfirem-fields/classes/fields/user_list/view/field_front_view.php on line 12
- > PHP Notice
Undefined variable: users in wp-content/plugins/gfirem-fields/classes/fields/user_list/view/field_front_view.php on line 13
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Requires at least: Version format is invalid
gfirem-fields/gfirem.php 92% from 13 tests
The main PHP file in "GFireM Fields" ver. 1.1.7 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gfirem-fields.php" instead of "gfirem.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin26,656 lines of code in 176 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 114 | 4,118 | 10,031 | 18,336 |
PO File | 6 | 2,165 | 2,195 | 4,907 |
Sass | 18 | 299 | 76 | 1,875 |
JavaScript | 18 | 251 | 274 | 1,153 |
Markdown | 1 | 61 | 0 | 192 |
CSS | 17 | 30 | 27 | 143 |
JSON | 2 | 0 | 0 | 50 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,111)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 28.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,111.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 68 | |
▷ Abstract classes | 2 | 2.94% |
▷ Concrete classes | 66 | 97.06% |
▷ Final classes | 0 | 0.00% |
Methods | 898 | |
▷ Static methods | 139 | 15.48% |
▷ Public methods | 665 | 74.05% |
▷ Protected methods | 52 | 5.79% |
▷ Private methods | 181 | 20.16% |
Functions | 78 | |
▷ Named functions | 75 | 96.15% |
▷ Anonymous functions | 3 | 3.85% |
Constants | 106 | |
▷ Global constants | 89 | 83.96% |
▷ Class constants | 17 | 16.04% |
▷ Public constants | 17 | 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
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
classes/include/freemius/assets/img/formidable_action_after.png | 9.16KB | 5.26KB | ▼ 42.58% |
classes/include/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
classes/include/freemius/assets/img/formidable-copy-action.png | 9.16KB | 5.26KB | ▼ 42.58% |
classes/include/freemius/assets/img/formidable-autocomplete.png | 9.16KB | 5.26KB | ▼ 42.58% |
classes/include/freemius/assets/img/gfirem.png | 9.16KB | 5.26KB | ▼ 42.58% |