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.01MB] [CPU: ▼7.59ms] Passed 4 tests
A check of server-side resources used by Styler for Contact Form 7
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.25 ▼2.46 |
Dashboard /wp-admin | 3.33 ▼0.02 | 47.71 ▼13.99 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 53.79 ▲4.77 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.93 ▼18.05 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.70 ▲4.13 |
Documentation /wp-admin/admin.php?page=cf-styler-documentation | 3.22 | 37.46 |
Licenses /wp-admin/admin.php?page=cf_styler_licenses | 3.22 | 34.60 |
Add-Ons /wp-admin/admin.php?page=cf-styler-addons | 3.22 | 32.56 |
Server storage [IO: ▲1.05MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
cf_styler_licenses |
Browser metrics Passed 4 tests
An overview of browser requirements for Styler for Contact Form 7
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 14.30 ▲0.12 | 1.80 ▼0.01 | 41.23 ▼1.30 |
Dashboard /wp-admin | 2,225 ▲44 | 5.58 ▼0.11 | 87.72 ▼20.59 | 39.51 ▼0.59 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.01 ▲0.02 | 41.26 ▲0.34 | 36.37 ▲0.05 |
Add New Post /wp-admin/post-new.php | 1,567 ▲22 | 23.50 ▲0.34 | 657.82 ▼20.09 | 61.90 ▲7.20 |
Media Library /wp-admin/upload.php | 1,433 ▲30 | 4.23 ▲0.01 | 106.63 ▲11.30 | 44.05 ▼1.37 |
Documentation /wp-admin/admin.php?page=cf-styler-documentation | 891 | 2.06 | 30.10 | 57.55 |
Licenses /wp-admin/admin.php?page=cf_styler_licenses | 816 | 2.03 | 27.31 | 25.39 |
Add-Ons /wp-admin/admin.php?page=cf-styler-addons | 827 | 2.01 | 26.67 | 27.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- cf_styler_licenses
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
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 everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/styler-for-contact-form-7/styler-for-contact-form7.php
- 45× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/styler-for-contact-form-7/includes/checkbox-inputs.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/styler-for-contact-form-7/includes/form-title.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/styler-for-contact-form-7/includes/dropdown-fields.php:4
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/styler-for-contact-form-7/includes/field-sub-labels.php on line 4
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/styler-for-contact-form-7/includes/checkbox-inputs.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/styler-for-contact-form-7/includes/section-break-description.php:4
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/styler-for-contact-form-7/includes/form-wrapper.php on line 4
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/styler-for-contact-form-7/includes/field-sub-labels.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/styler-for-contact-form-7/display/class-styles.php:2
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/styler-for-contact-form-7/includes/section-break-title.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Open Customize window), #2 (Styler for Contact Form 7 Panel), #3 (Sections for Settings), #4 (Options in settings)
styler-for-contact-form-7/styler-for-contact-form7.php 92% from 13 tests
This is the main PHP file of "Styler for Contact Form 7" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("styler-for-contact-form-7.php" instead of "styler-for-contact-form7.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin2,941 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 548 | 500 | 2,289 |
JavaScript | 2 | 221 | 510 | 626 |
CSS | 1 | 4 | 0 | 26 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 15.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 4.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 96.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.23% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.57MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/active.png | 1.63KB | 1.34KB | ▼ 17.74% |
admin-menu/images/step3.png | 41.28KB | 13.47KB | ▼ 67.36% |
assets/screenshot-4.png | 72.80KB | 23.31KB | ▼ 67.98% |
assets/screenshot-3.png | 68.93KB | 22.11KB | ▼ 67.93% |
assets/screenshot-1.png | 58.90KB | 18.01KB | ▼ 69.42% |