Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.94ms] Passed 4 tests
An overview of server-side resources used by Gravitizer - Material UI Styler for Gravity Forms
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.05 | 24.24 ▼16.67 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.98 ▼3.69 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.93 ▲1.50 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 94.46 ▼2.72 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.83 ▼0.67 |
Server storage [IO: ▲1.52MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
maybe_gravitizer_installed |
widget_recent-comments |
Gravitizer_Lite_Version |
how_to_use_notice_dismissed |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Gravitizer - Material UI Styler for Gravity Forms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,584 ▼162 | 14.28 ▼0.10 | 18.88 ▲17.10 | 14.75 ▼32.22 |
Dashboard /wp-admin | 2,218 ▲44 | 5.84 ▼0.01 | 96.50 ▼3.90 | 40.25 ▼1.37 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.01 ▼0.08 | 39.09 ▲2.62 | 38.42 ▲5.05 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 18.46 ▼4.61 | 625.16 ▼117.38 | 59.68 ▲4.36 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.20 ▼0.01 | 94.53 ▼4.15 | 45.07 ▼1.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 9 options in the database
- Gravitizer_Lite_Version
- widget_recent-posts
- theysaidso_admin_options
- maybe_gravitizer_installed
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- how_to_use_notice_dismissed
- can_compress_scripts
Smoke tests 50% 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 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
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gravitizer-lite/admin/partials/gravitizer-lite-admin-display.php
- > /wp-content/plugins/gravitizer-lite/public/partials/gravitizer-lite-public-display.php
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/gravitizer-lite/admin/partials/gravitizer-text-customizer.php on line 2
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/gravitizer-lite/admin/partials/gravitizer-wrapper-customizer.php on line 2
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/gravitizer-lite/admin/partials/gravitizer-switch-customizer.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/gravitizer-lite/admin/partials/gravitizer-radio-customizer.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/gravitizer-lite/admin/partials/gravitizer-text-customizer.php:2
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/gravitizer-lite/admin/partials/gravitizer-checkbox-customizer.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/gravitizer-lite/admin/partials/gravitizer-dropdown-customizer.php:2
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/gravitizer-lite/admin/partials/gravitizer-date-customizer.php on line 2
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/gravitizer-lite/admin/partials/gravitizer-dropdown-customizer.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/gravitizer-lite/admin/partials/gravitizer-date-customizer.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: gravity forms styler, gravity forms design, material design, gravity material ui
gravitizer-lite/gravitizer-lite.php Passed 13 tests
The main PHP script in "Gravitizer - Material UI Styler for Gravity Forms" version 2.0.1 is automatically included on every request by WordPress
76 characters long description:
Convert your traditional looking Gravity Forms into Material UI in one click
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected14,975 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 201 | 90 | 11,891 |
PHP | 19 | 494 | 693 | 2,588 |
CSS | 3 | 73 | 53 | 496 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 263)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 54.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 374.00 |
Average method complexity | 10.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 263.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 | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 36 | 87.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.20% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected