Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.37ms] Passed 4 tests
Analyzing server-side resources used by Smooth Maps
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.93 ▲0.08 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.25 ▼0.82 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.82 ▼3.72 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.71 ▼9.02 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.08 ▲1.11 |
Add New /wp-admin/post-new.php?post_type=smoothmaps | 3.12 | 34.34 |
Smooth Maps /wp-admin/edit.php?post_type=smoothmaps | 3.30 | 33.67 |
Settings /wp-admin/edit.php?post_type=smoothmaps&page=smooth-maps-setttings | 3.20 | 28.48 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Smooth Maps
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲103 | 13.16 ▼1.21 | 1.70 ▼0.03 | 44.47 ▲2.73 |
Dashboard /wp-admin | 2,241 ▲53 | 5.87 ▼0.04 | 93.86 ▼15.18 | 38.71 ▲1.02 |
Posts /wp-admin/edit.php | 2,124 ▲32 | 2.02 ▼0.03 | 33.99 ▼6.38 | 34.79 ▼1.15 |
Add New Post /wp-admin/post-new.php | 1,558 ▲25 | 23.38 ▲0.21 | 669.14 ▲91.72 | 55.74 ▲3.75 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.18 ▲0.02 | 93.64 ▼3.95 | 41.16 ▼1.46 |
Add New /wp-admin/post-new.php?post_type=smoothmaps | 1,728 | 3.57 | 60.02 | 61.50 |
Smooth Maps /wp-admin/edit.php?post_type=smoothmaps | 1,096 | 1.96 | 30.45 | 28.41 |
Settings /wp-admin/edit.php?post_type=smoothmaps&page=smooth-maps-setttings | 820 | 1.84 | 24.03 | 25.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=smoothmaps
- > Notice in wp-content/plugins/colour-smooth-maps/smoothmaps.php+321
Undefined index: smoothMaps-type
- > GET request to /wp-admin/post-new.php?post_type=smoothmaps
- > Notice in wp-content/plugins/colour-smooth-maps/smoothmaps.php+322
Undefined index: smoothMapsIframe-address
- > GET request to /wp-admin/post-new.php?post_type=smoothmaps
- > Notice in wp-content/plugins/colour-smooth-maps/smoothmaps.php+324
Undefined index: smoothMaps-address
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=smoothmaps
- > Notice in wp-content/plugins/colour-smooth-maps/smoothmaps.php+386
Undefined index: smoothMaps-zoom
- > GET request to /wp-admin/post-new.php?post_type=smoothmaps
- > Notice in wp-content/plugins/colour-smooth-maps/smoothmaps.php+339
Undefined index: smoothMaps-width
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=smoothmaps
- > Notice in wp-content/plugins/colour-smooth-maps/smoothmaps.php+392
Undefined index: smoothMaps-height
- > GET request to /wp-admin/post-new.php?post_type=smoothmaps
- > Notice in wp-content/plugins/colour-smooth-maps/smoothmaps.php+351
Undefined index: smoothMaps-style
- > GET request to /wp-admin/post-new.php?post_type=smoothmaps
- > Notice in wp-content/plugins/colour-smooth-maps/smoothmaps.php+352
Undefined index: smoothMaps-hide
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=smoothmaps
- > Notice in wp-content/plugins/colour-smooth-maps/smoothmaps.php+556
Trying to access array offset on value of type null
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=smoothmaps
- > Warning in wp-content/plugins/colour-smooth-maps/smoothmaps.php+563
Invalid argument supplied for foreach()
- > GET request to /wp-admin/post-new.php?post_type=smoothmaps
- > Notice in wp-content/plugins/colour-smooth-maps/smoothmaps.php+275
Uninitialized string offset: 0
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=smoothmaps&page=smooth-maps-setttings
- > Notice in wp-content/plugins/colour-smooth-maps/smoothmaps.php+113
Trying to access array offset on value of type bool
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=smoothmaps
- > Notice in wp-content/plugins/colour-smooth-maps/smoothmaps.php+563
Undefined variable: resultsLat
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=smoothmaps
- > Notice in wp-content/plugins/colour-smooth-maps/smoothmaps.php+556
Undefined variable: resultsLong
- > GET request to /wp-admin/post-new.php?post_type=smoothmaps
- > Notice in wp-content/plugins/colour-smooth-maps/smoothmaps.php+560
Undefined variable: styles
- > GET request to /wp-admin/post-new.php?post_type=smoothmaps
- > Notice in wp-content/plugins/colour-smooth-maps/smoothmaps.php+560
Undefined variable: hide_busineeses
- > GET request to /wp-admin/post-new.php?post_type=smoothmaps
- > Notice in wp-content/plugins/colour-smooth-maps/smoothmaps.php+569
Undefined variable: markers
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/colour-smooth-maps/smoothmaps.php:30
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/post-new.php?post_type=smoothmaps
- > Javascript (severe) in unknown
/wp-admin/post-new.php?post_type=smoothmaps 486:25 Uncaught SyntaxError: Unexpected token ','
- > GET request to /wp-admin/post-new.php?post_type=smoothmaps
- > Javascript (severe) in unknown
http://maps.google.com/maps/api/js?key=&callback=smoothMaps_initMap 128:470 Uncaught Raa: smoothMaps_initMap is not a function
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
colour-smooth-maps/smoothmaps.php 92% from 13 tests
This is the main PHP file of "Smooth Maps" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("colour-smooth-maps.php" instead of "smoothmaps.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
No dangerous file extensions were detected559 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 121 | 32 | 459 |
JavaScript | 1 | 17 | 6 | 65 |
CSS | 1 | 5 | 5 | 35 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected