Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.06ms] Passed 4 tests
This is a short check of server-side resources used by Track Geolocation Of Users Using Contact Form 7
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.16 ▼2.53 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.52 ▼9.38 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.54 ▼1.25 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.58 ▼3.07 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.72 ▲1.68 |
Geolocation Details /wp-admin/edit.php?post_type=cfgeozw_data | 3.04 | 23.07 |
Geolocation Settings /wp-admin/admin.php?page=geolocation-setting | 3.00 | 24.25 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
cfgeo_debug_mode |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Track Geolocation Of Users Using Contact Form 7
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.42 ▼0.18 | 1.68 ▼0.14 | 43.67 ▲0.45 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▲0.04 | 90.26 ▼9.14 | 41.31 ▲0.17 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.98 ▼0.03 | 39.00 ▲3.97 | 35.78 ▲0.82 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 23.34 ▲0.25 | 627.44 ▼20.37 | 62.49 ▲5.04 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.16 ▲0.03 | 95.51 ▼11.92 | 40.90 ▼2.68 |
Geolocation Details /wp-admin/edit.php?post_type=cfgeozw_data | 28 | 0.42 | 0.10 | 3.63 |
Geolocation Settings /wp-admin/admin.php?page=geolocation-setting | 28 | 0.42 | 0.10 | 3.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- cfgeo_debug_mode
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% 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 everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/track-geolocation-of-users-using-contact-form-7/inc/admin/template/tglcf.template.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=cfgeozw_data
- > Network (severe)
wp-admin/edit.php?post_type=cfgeozw_data - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=geolocation-setting
- > Network (severe)
wp-admin/admin.php?page=geolocation-setting - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Requires at least: Version format is invalid
track-geolocation-of-users-using-contact-form-7/track-geolocation-of-users-using-contact-form-7.php Passed 13 tests
The principal PHP file in "Track Geolocation Of Users Using Contact Form 7" v. 1.4 is loaded by WordPress automatically on each request
59 characters long description:
Fetch Geolocation of user when user submits contact form 7.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,371 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 224 | 523 | 1,197 |
JavaScript | 5 | 16 | 3 | 98 |
CSS | 3 | 10 | 0 | 76 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 42.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 5.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 1 | 1.96% |
▷ Public methods | 51 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin