Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/simple-google-contact-map/googlemap-sgcm.php+178
Function create_function() is deprecated
Server metrics [RAM: ▼1.91MB] [CPU: ▼53.10ms] Passed 4 tests
An overview of server-side resources used by Simple Google Contact Map
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 6.60 ▼33.63 |
Dashboard /wp-admin | 2.10 ▼1.21 | 5.38 ▼49.34 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.63 ▼42.77 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.44 ▼86.66 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.88 ▼28.34 |
Google Map - SGCM /wp-admin/options-general.php?page=sgc-map-option | 2.10 | 8.26 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_sgcm_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Google Contact Map
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 13.64 ▼0.76 | 2.15 ▲0.28 | 46.73 ▼2.39 |
Dashboard /wp-admin | 2,227 ▲24 | 5.84 ▲0.03 | 120.05 ▲19.53 | 46.91 ▲6.55 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.06 ▲0.03 | 40.73 ▲2.95 | 32.26 ▼6.21 |
Add New Post /wp-admin/post-new.php | 1,550 ▼0 | 23.41 ▲0.19 | 605.72 ▼87.14 | 62.42 ▲9.51 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.20 ▼0.06 | 95.80 ▼23.05 | 46.49 ▼1.78 |
Google Map - SGCM /wp-admin/options-general.php?page=sgc-map-option | 1,032 | 2.01 | 27.63 | 32.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/simple-google-contact-map/googlemap-sgcm.php+178
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_sgcm_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=sgc-map-option
- > Deprecated in wp-content/plugins/simple-google-contact-map/googlemap-sgcm.php+178
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=sgc-map-option
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Sgcm_Widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=sgc-map-option
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=sgc-map-option
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=sgc-map-option
- > Notice in wp-content/plugins/simple-google-contact-map/options.php+125
Undefined variable: msg
- 23 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=sgc-map-option
- > Notice in wp-content/plugins/simple-google-contact-map/options.php+166
Trying to access array offset on value of type bool
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-google-contact-map/options.php:112
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/simple-google-contact-map/googlemap-sgcm.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: contact map, direction, google map, contact, contact google map...
simple-google-contact-map/googlemap-sgcm.php 92% from 13 tests
Analyzing the main PHP file in "Simple Google Contact Map" version 1.0
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-google-contact-map.php" instead of "googlemap-sgcm.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected348 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 67 | 19 | 292 |
CSS | 1 | 15 | 6 | 56 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin