Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲6.03MB] [CPU: ▲29.16ms] 75% from 4 tests
A check of server-side resources used by SV Gravity Forms Enhancer
Please fix the following
- Extra RAM: The extra memory usage must be under 5MB (currently 6.03MB on /wp-admin/admin.php?page=straightvisions)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.71 ▲6.25 | 81.08 ▲33.30 |
Dashboard /wp-admin | 9.74 ▲6.44 | 82.36 ▲26.03 |
Posts /wp-admin/edit.php | 9.75 ▲6.39 | 87.16 ▲38.41 |
Add New Post /wp-admin/post-new.php | 10.93 ▲5.04 | 117.40 ▲18.88 |
Media Library /wp-admin/upload.php | 9.74 ▲6.52 | 80.88 ▲43.64 |
SV Gravity Forms Enhancer /wp-admin/admin.php?page=sv_gravity_forms_enhancer | 9.74 | 68.81 |
Info /wp-admin/admin.php?page=straightvisions | 9.74 | 73.15 |
Server storage [IO: ▲3.60MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 330 new files
Database: no new tables, 11 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
sv_gravity_forms_enhancer_scripts_settings_sv_core_color_picker_attached |
can_compress_scripts |
sv_gravity_forms_enhancer_version |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
sv_gravity_forms_enhancer_scripts_settings_flush_css_cache |
fs_debug_mode |
... |
Browser metrics Passed 4 tests
Checking browser requirements for SV Gravity Forms Enhancer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲107 | 13.30 ▼1.07 | 1.87 ▲0.11 | 38.56 ▼4.56 |
Dashboard /wp-admin | 2,220 ▲32 | 5.04 ▲0.18 | 101.73 ▼14.84 | 76.99 ▲34.83 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.01 ▼0.05 | 39.74 ▲2.48 | 35.74 ▲3.55 |
Add New Post /wp-admin/post-new.php | 1,547 ▲28 | 22.92 ▼0.09 | 702.10 ▲42.11 | 36.74 ▼13.40 |
Media Library /wp-admin/upload.php | 1,405 ▲14 | 4.12 ▼0.08 | 102.09 ▼2.55 | 48.85 ▲1.36 |
SV Gravity Forms Enhancer /wp-admin/admin.php?page=sv_gravity_forms_enhancer | 1,416 | 10.67 | 214.80 | 119.92 |
Info /wp-admin/admin.php?page=straightvisions | 1,538 | 10.62 | 82.66 | 294.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 11 options in the database
- sv_gravity_forms_enhancer_version
- sv_gravity_forms_enhancer_scripts_settings_flush_css_cache
- db_upgraded
- sv_gravity_forms_enhancer_scripts_settings_sv_core_color_picker_attached
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- fs_debug_mode
- fs_active_plugins
- can_compress_scripts
- ...
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sv-gravity-forms-enhancer/lib/core_plugin/core/settings/tpl/setting_checkbox_field.php
- 243× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'sv_core\\sv_abstract' not found in wp-content/plugins/sv-gravity-forms-enhancer/lib/core_plugin/core/metabox/metabox.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function sv_core\\__() in wp-content/plugins/sv-gravity-forms-enhancer/lib/core_plugin/core/abstract.php:286
- > PHP Fatal error
Uncaught Error: Class 'sv_core\\settings' not found in wp-content/plugins/sv-gravity-forms-enhancer/lib/core_plugin/core/settings/modules/setting_upload/setting_upload.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sv-gravity-forms-enhancer/lib/core_plugin/core/settings/tpl/setting_text.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sv-gravity-forms-enhancer/lib/core_plugin/core/settings/tpl/setting_upload.php on line 21
- > PHP Notice
Undefined variable: props in wp-content/plugins/sv-gravity-forms-enhancer/lib/core_plugin/core/settings/tpl/setting_upload.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sv-gravity-forms-enhancer/lib/core_plugin/core/backend/tpl/about.php:1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sv-gravity-forms-enhancer/lib/core_plugin/core/settings/tpl/setting_checkbox_field.php on line 15
- > PHP Notice
Undefined variable: props in wp-content/plugins/sv-gravity-forms-enhancer/lib/core_plugin/core/settings/tpl/setting_text.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sv-gravity-forms-enhancer/lib/core_plugin/core/settings/tpl/setting_font_tpl/line_height.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 86% 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
These attributes need to be fixed:
- Donate link: Invalid URI ("")
sv-gravity-forms-enhancer/sv_gravity_forms_enhancer.php 77% from 13 tests
The principal PHP file in "SV Gravity Forms Enhancer" v. 1.9.00 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sv-gravity-forms-enhancer.php" instead of "sv_gravity_forms_enhancer.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected40,860 lines of code in 266 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 207 | 8,307 | 17,555 | 36,134 |
CSS | 39 | 288 | 89 | 2,850 |
JavaScript | 14 | 235 | 180 | 899 |
PO File | 1 | 190 | 253 | 395 |
SVG | 1 | 0 | 0 | 339 |
Markdown | 3 | 68 | 0 | 216 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 53.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 3.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 90 | |
▷ Abstract classes | 3 | 3.33% |
▷ Concrete classes | 87 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 1,629 | |
▷ Static methods | 181 | 11.11% |
▷ Public methods | 1,213 | 74.46% |
▷ Protected methods | 67 | 4.11% |
▷ Private methods | 349 | 21.42% |
Functions | 115 | |
▷ Named functions | 93 | 80.87% |
▷ Anonymous functions | 22 | 19.13% |
Constants | 126 | |
▷ Global constants | 98 | 77.78% |
▷ Class constants | 28 | 22.22% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/core_plugin/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
lib/core_plugin/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
lib/core_plugin/assets/logo_icon.png | 1.34KB | 0.76KB | ▼ 43.44% |