Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▼3.23ms] Passed 4 tests
An overview of server-side resources used by Maps for Contact Form 7
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 28.27 ▼11.98 |
Dashboard /wp-admin | 3.64 ▲0.34 | 51.81 ▼2.25 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 46.16 ▲0.59 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 96.84 ▲0.74 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 35.19 ▲1.35 |
Maps for Contact Form 7 /wp-admin/options-general.php?page=maps-for-cf7-settings | 3.44 | 38.77 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Maps for Contact Form 7: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,487 ▼248 | 14.84 ▲0.62 | 0.49 ▼1.34 | 18.47 ▼27.06 |
Dashboard /wp-admin | 2,228 ▲37 | 4.89 ▼0.99 | 105.97 ▼1.75 | 43.32 ▼2.64 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.01 ▼0.00 | 33.88 ▼3.67 | 33.15 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,550 ▲16 | 23.37 ▲0.38 | 662.90 ▼108.87 | 67.67 ▲7.32 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.22 ▼0.05 | 95.45 ▼15.05 | 42.65 ▼2.80 |
Maps for Contact Form 7 /wp-admin/options-general.php?page=maps-for-cf7-settings | 780 | 1.57 | 8.10 | 18.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=maps-for-cf7-settings
- > Notice in wp-content/plugins/map-contact-form-7/includes/options.php+93
Undefined index: API_KEY
- > GET request to /wp-admin/options-general.php?page=maps-for-cf7-settings
- > Error in wp-content/plugins/map-contact-form-7/includes/options.php+151
Uncaught Error: Class 'WPCF7_ContactForm' not found in wp-content/plugins/map-contact-form-7/includes/options.php:151
Stack trace:
#0 wp-admin/includes/template.php(1824): MAPS_FOR_CF7_Options->output_form_ids_field()
#1 wp-admin/includes/template.php(1778): do_settings_fields()
#2 wp-content/plugins/map-contact-form-7/includes/options.php(212): do_settings_sections()
#3 wp-includes/class-wp-hook.php(310): MAPS_FOR_CF7_Options->output()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/admin.php(259): do_action()
#7 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#8 {main}
thrown
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 items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/map-contact-form-7/includes/add-option.php
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'MAPS_FOR_CF7_PLUGIN_DIR/includes/capabilities.php' (include_path='.:/usr/share/php') in wp-content/plugins/map-contact-form-7/load.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/map-contact-form-7/admin/includes/form_list_table.php on line 4
- > PHP Warning
Use of undefined constant MAPS_FOR_CF7_PLUGIN_DIR - assumed 'MAPS_FOR_CF7_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/map-contact-form-7/load.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'MAPS_FOR_CF7_PLUGIN_DIR/admin/includes/form_list_table.php' (include_path='.:/usr/share/php') in wp-content/plugins/map-contact-form-7/admin/admin.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/map-contact-form-7/admin/includes/post_list_table.php on line 4
- > PHP Warning
Use of undefined constant MAPS_FOR_CF7_PLUGIN_DIR - assumed 'MAPS_FOR_CF7_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/map-contact-form-7/admin/admin.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/map-contact-form-7/admin/includes/form_list_table.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/map-contact-form-7/admin/includes/form_list_table.php on line 4
- > PHP Warning
require_once(MAPS_FOR_CF7_PLUGIN_DIR/admin/includes/form_list_table.php): failed to open stream: No such file or directory in wp-content/plugins/map-contact-form-7/admin/admin.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/map-contact-form-7/admin/includes/post_list_table.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Donate link: Please fix this invalid URI: ""
map-contact-form-7/maps-for-contact-form-7.php 85% from 13 tests
The primary PHP file in "Maps for Contact Form 7" version 1.0.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("map-contact-form-7.php" instead of "maps-for-contact-form-7.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,375 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 249 | 280 | 1,976 |
JavaScript | 1 | 27 | 11 | 271 |
Sass | 1 | 4 | 0 | 83 |
CSS | 1 | 2 | 16 | 39 |
Ruby | 1 | 6 | 13 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 10.82 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 34 | 41.46% |
▷ Public methods | 57 | 69.51% |
▷ Protected methods | 1 | 1.22% |
▷ Private methods | 24 | 29.27% |
Functions | 24 | |
▷ Named functions | 10 | 41.67% |
▷ Anonymous functions | 14 | 58.33% |
Constants | 32 | |
▷ Global constants | 9 | 28.12% |
▷ Class constants | 23 | 71.88% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected