Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.26ms] Passed 4 tests
This is a short check of server-side resources used by Location Module (Lite) for Contact Form 7
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.80 ▼1.07 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.46 ▼2.94 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.94 ▼2.16 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.62 ▼18.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.41 ▲2.88 |
Location Module for CF7 /wp-admin/options-general.php?page=cf7-location-module-settings | 3.01 | 27.14 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Location Module (Lite) for Contact Form 7
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.30 ▼0.08 | 1.66 ▼0.14 | 38.51 ▼2.20 |
Dashboard /wp-admin | 2,195 ▲18 | 5.64 ▲0.11 | 89.96 ▼1.07 | 39.02 ▼0.43 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.00 ▼0.04 | 39.74 ▼0.42 | 33.94 ▼4.35 |
Add New Post /wp-admin/post-new.php | 1,545 ▲11 | 22.98 ▼0.68 | 608.54 ▼51.84 | 49.36 ▼5.31 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.21 ▼0.01 | 97.15 ▼7.62 | 43.06 ▼1.04 |
Location Module for CF7 /wp-admin/options-general.php?page=cf7-location-module-settings | 28 | 0.44 | 0.11 | 3.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/location-module-for-contact-form-7/admin/cf7-location-module-tag-settings.php
- > /wp-content/plugins/location-module-for-contact-form-7/cf7-location-module.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/location-module-for-contact-form-7/admin/cf7-location-module-settings-page.php:11
- > 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)
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=cf7-location-module-settings
- > Network (severe)
wp-admin/options-general.php?page=cf7-location-module-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
9 plugin tags: module, geogode, location, form, contact form...
location-module-for-contact-form-7/cf7-location-module.php 92% from 13 tests
The main PHP script in "Location Module (Lite) for Contact Form 7" version 1.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("location-module-for-contact-form-7.php" instead of "cf7-location-module.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,556 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 465 | 247 | 1,962 |
PHP | 4 | 97 | 97 | 391 |
PO File | 1 | 48 | 49 | 145 |
CSS | 2 | 3 | 0 | 58 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 88.89% |
▷ Protected methods | 3 | 11.11% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected