Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.53ms] 75% from 4 tests
Server-side resources used by Form Styles For Contact Form 7
The following require your attention
- CPU: The total CPU usage must kept under 500.00ms (currently 841.66ms on /wp-admin/admin.php?page=form-styles-for-contact-form-7/index.php/update)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.85 ▲2.56 |
Dashboard /wp-admin | 3.32 ▲0.01 | 54.92 ▲3.58 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.62 ▼4.97 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.88 ▼15.29 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 41.88 ▲5.54 |
CF7 Styles /wp-admin/admin.php?page=form-styles-for-contact-form-7/index.php | 3.26 | 857.11 |
Add Styles /wp-admin/admin.php?page=form-styles-for-contact-form-7/index.php/update | 3.25 | 841.66 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 25 new files
Database: 1 new table, 7 new options
New tables |
---|
tbl_core37_formstyle |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
jal_db_version |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Form Styles For Contact Form 7
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲87 | 13.22 ▼1.15 | 1.74 ▲0.03 | 42.79 ▼1.52 |
Dashboard /wp-admin | 2,238 ▲41 | 4.98 ▼0.90 | 113.65 ▲10.54 | 70.58 ▲27.46 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.04 ▼0.01 | 35.73 ▼2.58 | 33.15 ▼2.68 |
Add New Post /wp-admin/post-new.php | 1,704 ▲173 | 22.65 ▼0.34 | 757.92 ▲126.88 | 55.30 ▲1.09 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.25 ▲0.04 | 100.00 ▼8.20 | 71.92 ▲29.87 |
CF7 Styles /wp-admin/admin.php?page=form-styles-for-contact-form-7/index.php | 878 | 2.03 | 28.13 | 74.33 |
Add Styles /wp-admin/admin.php?page=form-styles-for-contact-form-7/index.php/update | 795 | 1.85 | 30.77 | 31.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- tbl_core37_formstyle
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- jal_db_version
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/form-styles-for-contact-form-7/ajax-js.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/form-styles-for-contact-form-7/update.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/form-styles-for-contact-form-7/index.php:12
- > PHP Warning
Use of undefined constant STYLE_TABLE_NAME - assumed 'STYLE_TABLE_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/form-styles-for-contact-form-7/update.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/form-styles-for-contact-form-7/manager.php:8
- > PHP Warning
Use of undefined constant STYLE_TABLE_NAME - assumed 'STYLE_TABLE_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/form-styles-for-contact-form-7/manager.php on line 5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=form-styles-for-contact-form-7/index.php/update
- > Javascript (severe) in unknown
/wp-content/plugins/form-styles-for-contact-form-7/js/jquery.fancybox-1.3.4.js?ver=6.3.1 28:20 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=form-styles-for-contact-form-7/index.php/update
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).fancybox is not a function" "TypeError: jQuery(...).fancybox is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/form-styles-for-contact-form-7/js/scripts.js?ver=6.3.1:2:34)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=form-styles-for-contact-form-7/index.php/update
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).fancybox is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: captcha, captcha form, contact form, contact form styles, contact form 7...
form-styles-for-contact-form-7/index.php 92% from 13 tests
The main PHP file in "Form Styles For Contact Form 7" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("form-styles-for-contact-form-7.php" instead of "index.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
There were no executable files found in this plugin2,042 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 294 | 30 | 856 |
CSS | 5 | 136 | 124 | 763 |
PHP | 5 | 55 | 48 | 423 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
5 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/fancybox.png | 14.93KB | 8.47KB | ▼ 43.29% |
css/fancy_title_over.png | 0.07KB | 0.09KB | 0.00% |
css/fancybox-x.png | 0.20KB | 0.31KB | 0.00% |
css/fancybox-y.png | 0.17KB | 0.24KB | 0.00% |
images/icon.png | 0.70KB | 0.78KB | 0.00% |