Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.83ms] Passed 4 tests
A check of server-side resources used by Contact Form 7 extension for Google Map fields
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.31 ▼8.35 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.36 ▲4.49 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.53 ▼1.46 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.92 ▼7.53 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.61 ▲2.03 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Contact Form 7 extension for Google Map fields
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.19 ▼1.50 | 1.74 ▼0.24 | 44.36 ▼0.69 |
Dashboard /wp-admin | 2,209 ▲21 | 4.85 ▼1.11 | 110.29 ▼1.06 | 40.74 ▼8.80 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.05 ▲0.04 | 39.68 ▼1.15 | 34.71 ▼4.22 |
Add New Post /wp-admin/post-new.php | 1,536 ▲15 | 23.23 ▲0.03 | 635.05 ▼12.51 | 57.44 ▲1.56 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.20 ▼0.04 | 96.92 ▼10.41 | 42.89 ▼1.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/cf7-google-map/admin/partials/cf7-google-map-settings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/cf7-google-map/admin/partials/cf7-sgui-js-helper-hooks.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/cf7-google-map/admin/partials/cf7-sgui-helper-hooks.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wpcf7_get_validation_error() in wp-content/plugins/cf7-google-map/public/partials/cf7-googlemap.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/cf7-google-map/admin/partials/cf7-tag-display.php:21
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: google map, geocode, location, contact form 7 extension, maps...
cf7-google-map/cf7-googlemap.php 92% from 13 tests
"Contact Form 7 extension for Google Map fields" version 1.9.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cf7-google-map.php" instead of "cf7-googlemap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,231 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 133 | 814 | 1,004 |
JavaScript | 9 | 74 | 97 | 924 |
CSS | 3 | 1 | 5 | 141 |
Markdown | 1 | 48 | 0 | 109 |
JSON | 2 | 0 | 0 | 53 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 10.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 46 | |
▷ Static methods | 6 | 13.04% |
▷ Public methods | 41 | 89.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.87% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/red-marker.png | 2.18KB | 1.76KB | ▼ 19.04% |