Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.21ms] Passed 4 tests
An overview of server-side resources used by Smart Grid-Layout Design for Contact Form 7
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.72 ▼0.78 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.67 ▼9.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.68 ▼1.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.12 ▼5.87 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.64 ▲0.33 |
Server storage [IO: ▲7.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 769 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
_cf7sg_version |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Smart Grid-Layout Design 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,790 ▲43 | 14.22 ▼0.18 | 1.82 ▲0.19 | 43.54 ▲0.81 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▲0.01 | 93.00 ▲1.88 | 41.35 ▼0.14 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▲0.01 | 37.08 ▼4.69 | 35.58 ▲0.58 |
Add New Post /wp-admin/post-new.php | 1,535 ▲6 | 25.03 ▲2.14 | 641.76 ▼27.81 | 62.91 ▲11.37 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.21 ▲0.03 | 99.08 ▲0.36 | 42.62 ▲0.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- _cf7sg_version
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 8× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/cf7-grid-layout/assets/cf7-admin-table/admin/partials/cf7sg-tutorials-slider.php
- > /wp-content/plugins/cf7-grid-layout/assets/cf7-admin-table/admin/partials/cf7sg-tutorials-dynamic.php
- > /wp-content/plugins/cf7-grid-layout/assets/cf7-admin-table/admin/partials/cf7sg-tutorials-tables.php
- > /wp-content/plugins/cf7-grid-layout/assets/cf7-admin-table/admin/partials/cf7sg-tutorials-intro.php
- > /wp-content/plugins/cf7-grid-layout/admin/partials/cf7-default-js.php
- > /wp-content/plugins/cf7-grid-layout/assets/cf7-admin-table/admin/partials/cf7sg-tutorials-advance.php
- > /wp-content/plugins/cf7-grid-layout/assets/cf7-admin-table/admin/partials/cf7sg-tutorials-toggles.php
- > /wp-content/plugins/cf7-grid-layout/public/partials/cf7sg-field-load-script.php
- 112× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Amp\\CancellationToken' not found in wp-content/plugins/cf7-grid-layout/assets/simple-html-dom/amphp/amp/lib/TimeoutCancellationToken.php:10
- > PHP Fatal error
Uncaught Error: Class 'Amp\\Loop\\Driver' not found in wp-content/plugins/cf7-grid-layout/assets/simple-html-dom/amphp/amp/lib/Loop/EventDriver.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Amp\\Promise' not found in wp-content/plugins/cf7-grid-layout/assets/simple-html-dom/amphp/amp/lib/LazyPromise.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Amp\\Promise' not found in wp-content/plugins/cf7-grid-layout/assets/simple-html-dom/amphp/amp/lib/Internal/PrivatePromise.php:11
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/cf7-grid-layout/assets/simple-html-dom/symfony/css-selector/Node/ElementNode.php:24
- > PHP Fatal error
Uncaught Error: Class 'voku\\helper\\AbstractSimpleHtmlDomNode' not found in wp-content/plugins/cf7-grid-layout/assets/simple-html-dom/voku/simple_html_dom/src/voku/helper/SimpleHtmlDomNode.php:10
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\Exception\\ParseException' not found in wp-content/plugins/cf7-grid-layout/assets/simple-html-dom/symfony/css-selector/Exception/ExpressionErrorException.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\ParserInterface' not found in wp-content/plugins/cf7-grid-layout/assets/simple-html-dom/symfony/css-selector/Parser/Parser.php:28
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\Exception\\ParseException' not found in wp-content/plugins/cf7-grid-layout/assets/simple-html-dom/symfony/css-selector/Exception/InternalErrorException.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/cf7-grid-layout/assets/cf7-admin-table/admin/partials/cf7sg-tutorials-pro.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/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
9 plugin tags: multi-step form, form custom javascript, form builder, repetitive fields, multi-slide slider form...
cf7-grid-layout/cf7-grid-layout.php Passed 13 tests
The main PHP script in "Smart Grid-Layout Design for Contact Form 7" version 4.15.6 is automatically included on every request by WordPress
64 characters long description:
Enabled responsive grid layout designs for Contact Form 7 forms.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected152,522 lines of code in 658 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 402 | 5,189 | 16,223 | 111,014 |
JavaScript | 155 | 3,311 | 3,149 | 27,270 |
Markdown | 19 | 1,828 | 2 | 5,259 |
CSS | 44 | 204 | 116 | 4,270 |
PO File | 6 | 1,099 | 1,518 | 2,576 |
JSON | 14 | 0 | 0 | 1,097 |
HTML | 9 | 130 | 1 | 773 |
LESS | 6 | 29 | 0 | 181 |
XML | 2 | 7 | 0 | 78 |
YAML | 1 | 0 | 0 | 4 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,433)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 118)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 30.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,433.00 |
Average method complexity | 3.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 118.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 15 | |
Traits | 5 | |
Classes | 114 | |
▷ Abstract classes | 8 | 7.02% |
▷ Concrete classes | 106 | 92.98% |
▷ Final classes | 24 | 22.64% |
Methods | 1,503 | |
▷ Static methods | 476 | 31.67% |
▷ Public methods | 1,354 | 90.09% |
▷ Protected methods | 62 | 4.13% |
▷ Private methods | 87 | 5.79% |
Functions | 202 | |
▷ Named functions | 111 | 54.95% |
▷ Anonymous functions | 91 | 45.05% |
Constants | 131 | |
▷ Global constants | 22 | 16.79% |
▷ Class constants | 109 | 83.21% |
▷ Public constants | 109 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.31MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/image/tutorial.png | 22.63KB | 8.48KB | ▼ 62.51% |
assets/cf7-admin-table/admin/partials/images/rntbci.png | 12.61KB | 4.51KB | ▼ 64.19% |
assets/cf7-admin-table/admin/partials/images/jaxa.png | 21.14KB | 6.01KB | ▼ 71.58% |
public/css/min/search.png | 0.65KB | 0.62KB | ▼ 3.63% |
assets/cf7-admin-table/admin/partials/images/hex.png | 23.27KB | 6.93KB | ▼ 70.21% |