Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.92ms] Passed 4 tests
Analyzing server-side resources used by Google Map Targeting
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 37.49 ▼3.50 |
Dashboard /wp-admin | 3.32 ▲0.02 | 53.37 ▼0.84 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.72 ▲1.51 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 88.88 ▼16.83 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 40.74 ▲1.62 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_pluginusnet_gmaptargetingwidget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Google Map Targeting
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲166 | 14.43 ▲0.27 | 27.40 ▲25.84 | 37.93 ▼10.39 |
Dashboard /wp-admin | 2,221 ▲15 | 5.85 ▲0.96 | 112.21 ▼2.08 | 37.61 ▼6.20 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.00 ▲0.01 | 37.47 ▼3.68 | 35.96 ▲1.10 |
Add New Post /wp-admin/post-new.php | 1,557 ▲12 | 18.33 ▼4.99 | 632.10 ▼27.70 | 63.44 ▼42.78 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.24 ▼0.05 | 114.36 ▼4.01 | 50.07 ▲0.38 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_pluginusnet_gmaptargetingwidget
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gmap-targeting/views/widget/google_map.php
- > /wp-content/plugins/gmap-targeting/views/widget/google_map_form.php
- > /wp-content/plugins/gmap-targeting/index.php
- > /wp-content/plugins/gmap-targeting/views/shortcodes/gmap_targeting.php
- > /wp-content/plugins/gmap-targeting/views/shortcodes/popups/gmap_targeting.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: page, post, google, google map, map...
gmap-targeting/index.php 92% from 13 tests
The main PHP file in "Google Map Targeting" ver. 1.1.6 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gmap-targeting.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,653 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 199 | 108 | 971 |
PHP | 5 | 134 | 33 | 794 |
JavaScript | 6 | 95 | 176 | 671 |
PO File | 2 | 97 | 221 | 217 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 22 | |
▷ Static methods | 18 | 81.82% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ 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
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/gmap_targeting_logo.png | 1.95KB | 1.91KB | ▼ 2.10% |
images/icons/shortcode.png | 13.71KB | 6.12KB | ▼ 55.38% |
js/pn_popup/images/close.png | 3.23KB | 0.43KB | ▼ 86.82% |
images/icons/gmap_targeting.png | 6.19KB | 3.06KB | ▼ 50.50% |
images/shortcode_icon.png | 1.06KB | 1.23KB | 0.00% |