Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼2.82ms] Passed 4 tests
An overview of server-side resources used by Styler for Ninja Forms
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 39.90 ▼3.45 |
Dashboard /wp-admin | 3.49 ▲0.18 | 46.89 ▼4.43 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 51.29 ▲4.25 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 81.20 ▼5.93 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 37.85 ▲2.54 |
Add-Ons /wp-admin/admin.php?page=sfnf-addons | 3.37 | 32.12 |
Documentation /wp-admin/admin.php?page=sfnf-documentation | 3.37 | 31.45 |
Licenses /wp-admin/admin.php?page=sfnf_licenses | 3.37 | 29.02 |
Server storage [IO: ▲5.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 101 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
sfnf_licenses |
Browser metrics Passed 4 tests
Checking browser requirements for Styler for Ninja Forms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 13.20 ▼1.10 | 1.74 ▼0.21 | 47.30 ▲6.30 |
Dashboard /wp-admin | 2,241 ▲50 | 4.88 ▼1.00 | 104.03 ▲5.15 | 37.61 ▼5.88 |
Posts /wp-admin/edit.php | 2,127 ▲35 | 2.03 ▼0.01 | 40.54 ▼6.93 | 36.35 ▼2.13 |
Add New Post /wp-admin/post-new.php | 1,546 ▲27 | 23.32 ▼0.10 | 650.68 ▲6.91 | 58.98 ▲8.77 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.24 ▲0.07 | 99.03 ▼8.15 | 43.23 ▼4.81 |
Add-Ons /wp-admin/admin.php?page=sfnf-addons | 839 | 2.02 | 25.60 | 31.68 |
Documentation /wp-admin/admin.php?page=sfnf-documentation | 1,058 | 2.20 | 25.51 | 42.35 |
Licenses /wp-admin/admin.php?page=sfnf_licenses | 811 | 2.07 | 25.08 | 27.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- sfnf_licenses
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/styler-for-ninja-forms-lite/ninja-forms-styler-lite.php
- 48× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/styler-for-ninja-forms-lite/display/class-styles.php:2
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/styler-for-ninja-forms-lite/includes/outer-shadow.php on line 3
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/styler-for-ninja-forms-lite/includes/form-title.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/styler-for-ninja-forms-lite/includes/checkbox-inputs.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/styler-for-ninja-forms-lite/includes/submit-button.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/styler-for-ninja-forms-lite/includes/form-select.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/styler-for-ninja-forms-lite/includes/field-labels.php:4
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/styler-for-ninja-forms-lite/includes/confirmation-message.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/styler-for-ninja-forms-lite/includes/general-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/styler-for-ninja-forms-lite/includes/radio-inputs.php:3
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (Plugin Admin)
styler-for-ninja-forms-lite/ninja-forms-styler-lite.php 92% from 13 tests
"Styler for Ninja Forms" version 3.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("styler-for-ninja-forms-lite.php" instead of "ninja-forms-styler-lite.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin9,111 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 925 | 512 | 5,931 |
JavaScript | 6 | 495 | 170 | 1,384 |
CSS | 5 | 214 | 153 | 1,280 |
HTML | 27 | 70 | 1 | 516 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 11.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 58 | 90.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 9.38% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
23 PNG files occupy 4.39MB with 1.89MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin-menu/images/welcome/cs-theme.png | 2.43KB | 1.61KB | ▼ 33.53% |
admin-menu/images/donate-button.png | 13.46KB | 6.06KB | ▼ 55.01% |
admin-menu/images/welcome/field-icons.png | 3.79KB | 2.17KB | ▼ 42.60% |
admin-menu/images/step1.png | 45.96KB | 16.64KB | ▼ 63.79% |
admin-menu/images/welcome/addons.png | 1.99KB | 1.58KB | ▼ 20.57% |