Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.04MB] [CPU: ▲21.17ms] 50% from 4 tests
Analyzing server-side resources used by Block Styler For Gravity Forms
Please fix the following
- CPU: The total CPU usage must kept under 500.00ms (currently 2,073.62ms on /wp-admin/options-general.php?page=block-styler-for-gravity-forms)
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.04MB on /wp-admin/options-general.php?page=block-styler-for-gravity-forms)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.87 ▲5.41 | 66.87 ▲25.36 |
Dashboard /wp-admin | 8.89 ▲5.59 | 72.93 ▲21.55 |
Posts /wp-admin/edit.php | 8.90 ▲5.54 | 78.60 ▲26.90 |
Add New Post /wp-admin/post-new.php | 9.51 ▲3.63 | 114.13 ▲10.87 |
Media Library /wp-admin/upload.php | 8.89 ▲5.67 | 69.26 ▲29.25 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.89 | 63.79 |
Block Styler For Gravity Forms /wp-admin/options-general.php?page=block-styler-for-gravity-forms | 8.90 | 2,073.62 |
Server storage [IO: ▲3.49MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 245 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_active_plugins |
can_compress_scripts |
widget_recent-posts |
fs_debug_mode |
fs_accounts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Block Styler For Gravity Forms: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲89 | 13.18 ▼1.19 | 1.60 ▼0.31 | 28.02 ▼18.98 |
Dashboard /wp-admin | 2,246 ▲43 | 4.80 ▼0.31 | 110.42 ▲3.16 | 43.37 ▼4.17 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.14 ▲0.12 | 36.27 ▲1.18 | 34.93 ▼0.07 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.76 ▲6.26 | 700.22 ▲59.81 | 68.67 ▲21.34 |
Media Library /wp-admin/upload.php | 1,428 ▲31 | 4.20 ▼0.02 | 97.07 ▼6.44 | 45.48 ▼0.90 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,090 | 1.72 | 23.34 | 28.89 |
Block Styler For Gravity Forms /wp-admin/options-general.php?page=block-styler-for-gravity-forms | 991 | 1.86 | 27.91 | 61.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/block-styler-for-gravity-forms/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- fs_active_plugins
- fs_debug_mode
- can_compress_scripts
- widget_recent-posts
- fs_accounts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=block-styler-for-gravity-forms
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 23× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/block-styler-for-gravity-forms/vendor/pimple/pimple/src/Pimple/Psr11/ServiceLocator.php:38
- > PHP Fatal error
Trait 'WPT\\GutenbergGravityForm\\Gutenberg\\Style\\DefaultComponentFunctions' not found in wp-content/plugins/block-styler-for-gravity-forms/includes/classes/Gutenberg/Style/SingleValueComponent.php on line 7
- > PHP Fatal error
Uncaught Error: Interface 'Pimple\\ServiceProviderInterface' not found in wp-content/plugins/block-styler-for-gravity-forms/vendor/pimple/pimple/src/Pimple/Tests/Fixtures/PimpleServiceProvider.php:32
- > PHP Fatal error
Uncaught Error: Class 'Pimple\\Container' not found in wp-content/plugins/block-styler-for-gravity-forms/includes/classes/Loader.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/block-styler-for-gravity-forms/vendor/pimple/pimple/src/Pimple/Tests/PimpleTest.php:35
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/block-styler-for-gravity-forms/vendor/pimple/pimple/src/Pimple/Exception/UnknownIdentifierException.php:36
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/block-styler-for-gravity-forms/vendor/pimple/pimple/src/Pimple/Exception/ExpectedInvokableException.php:36
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/block-styler-for-gravity-forms/vendor/pimple/pimple/src/Pimple/Tests/ServiceIteratorTest.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/block-styler-for-gravity-forms/resources/views/sub_menu.php:2
- > PHP Fatal error
Trait 'WPT\\GutenbergGravityForm\\Gutenberg\\Style\\DefaultComponentFunctions' not found in wp-content/plugins/block-styler-for-gravity-forms/includes/classes/Gutenberg/Style/TabbedBackgroundColor.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: gutenberg, gravityforms styler using gutenberg, gravity forms gutenberg, gravityforms gutenberg, gravity forms...
block-styler-for-gravity-forms/block-styler-for-gravity-forms.php 92% from 13 tests
The main PHP file in "Block Styler For Gravity Forms" ver. 6.3.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin36,739 lines of code in 194 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 168 | 8,549 | 18,407 | 35,989 |
CSS | 15 | 24 | 0 | 221 |
JavaScript | 4 | 34 | 59 | 195 |
JSON | 3 | 0 | 0 | 174 |
reStructuredText | 1 | 96 | 139 | 97 |
YAML | 1 | 7 | 1 | 39 |
XML | 1 | 2 | 0 | 16 |
Markdown | 1 | 5 | 0 | 8 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 52.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 4 | |
Traits | 1 | |
Classes | 84 | |
▷ Abstract classes | 2 | 2.38% |
▷ Concrete classes | 82 | 97.62% |
▷ Final classes | 2 | 2.44% |
Methods | 1,455 | |
▷ Static methods | 217 | 14.91% |
▷ Public methods | 1,064 | 73.13% |
▷ Protected methods | 17 | 1.17% |
▷ Private methods | 374 | 25.70% |
Functions | 164 | |
▷ Named functions | 100 | 60.98% |
▷ Anonymous functions | 64 | 39.02% |
Constants | 145 | |
▷ Global constants | 98 | 67.59% |
▷ Class constants | 47 | 32.41% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/block-styler-for-gravity-forms.png | 11.68KB | 5.10KB | ▼ 56.28% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |