Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.50MB] [CPU: ▲8.80ms] Passed 4 tests
Analyzing server-side resources used by DM Visitor Location Notification
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.95 ▲1.49 | 50.16 ▲1.24 |
Dashboard /wp-admin | 4.83 ▲1.52 | 67.21 ▲13.97 |
Posts /wp-admin/edit.php | 4.87 ▲1.51 | 72.78 ▲18.84 |
Add New Post /wp-admin/post-new.php | 7.41 ▲1.52 | 114.79 ▲10.43 |
Media Library /wp-admin/upload.php | 4.72 ▲1.48 | 48.15 ▲9.54 |
DM VLN /wp-admin/admin.php?page=dm-vln-settings | 4.79 | 54.04 |
Server storage [IO: ▲12.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 712 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_dm_visitor_location |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
dm_vln_api_key_status |
Browser metrics Passed 4 tests
An overview of browser requirements for DM Visitor Location Notification
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,129 ▲372 | 18.83 ▲4.40 | 2.00 ▼0.99 | 30.37 ▼10.15 |
Dashboard /wp-admin | 2,505 ▲314 | 9.25 ▲4.39 | 189.40 ▲66.87 | 44.28 ▲0.74 |
Posts /wp-admin/edit.php | 2,419 ▲330 | 6.11 ▲4.08 | 95.45 ▲51.87 | 44.64 ▲8.20 |
Add New Post /wp-admin/post-new.php | 1,609 ▲95 | 19.89 ▲2.42 | 739.38 ▲65.86 | 40.73 ▼34.47 |
Media Library /wp-admin/upload.php | 1,550 ▲159 | 6.77 ▲2.57 | 117.20 ▲8.74 | 48.57 ▲1.91 |
DM VLN /wp-admin/admin.php?page=dm-vln-settings | 1,628 | 6.90 | 117.51 | 37.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 17 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dm-vln-settings
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 17 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dm-vln-settings
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
- 68 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dm-vln-settings
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 17 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dm-vln-settings
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/dm-visitor-location-notification/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 119× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Predefined_Options_Field' not found in wp-content/plugins/dm-visitor-location-notification/vendor/htmlburger/carbon-fields/core/Field/Select_Field.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/dm-visitor-location-notification/vendor/htmlburger/carbon-fields/core/Container/Term_Meta_Container.php:11
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/dm-visitor-location-notification/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Ancestor_ID_Condition.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Term_Condition' not found in wp-content/plugins/dm-visitor-location-notification/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Parent_Condition.php:28
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/dm-visitor-location-notification/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Format_Condition.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/dm-visitor-location-notification/vendor/htmlburger/carbon-fields/core/Container/Condition/Boolean_Condition.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/dm-visitor-location-notification/vendor/htmlburger/carbon-fields/core/Field/Media_Gallery_Field.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function PHPSTORM_META\\override() in wp-content/plugins/dm-visitor-location-notification/vendor/htmlburger/carbon-fields/.phpstorm.meta.php/ioc.meta.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/dm-visitor-location-notification/vendor/htmlburger/carbon-fields/core/Field/Checkbox_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Term_Condition' not found in wp-content/plugins/dm-visitor-location-notification/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Ancestor_Condition.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
Attributes that require attention:
- Donate link: Please fix this invalid url: "devmaverick.com/donate"
dm-visitor-location-notification/index.php 85% from 13 tests
"DM Visitor Location Notification" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dm-visitor-location-notification.php" instead of "index.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 153 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin50,126 lines of code in 662 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 232 | 0 | 0 | 21,941 |
JavaScript | 172 | 5,192 | 8,449 | 12,957 |
PHP | 155 | 2,632 | 6,676 | 9,357 |
Sass | 59 | 419 | 107 | 2,047 |
PO File | 20 | 610 | 779 | 1,652 |
CSS | 11 | 323 | 1,143 | 1,648 |
JSON | 4 | 0 | 0 | 376 |
Markdown | 9 | 72 | 0 | 148 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 129 | |
▷ Abstract classes | 11 | 8.53% |
▷ Concrete classes | 118 | 91.47% |
▷ Final classes | 1 | 0.85% |
Methods | 938 | |
▷ Static methods | 103 | 10.98% |
▷ Public methods | 761 | 81.13% |
▷ Protected methods | 173 | 18.44% |
▷ Private methods | 4 | 0.43% |
Functions | 103 | |
▷ Named functions | 23 | 22.33% |
▷ Anonymous functions | 80 | 77.67% |
Constants | 30 | |
▷ Global constants | 7 | 23.33% |
▷ Class constants | 23 | 76.67% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin