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/lsd-google-maps-embedder/views/shortcode.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; lsd_gme_shortcode has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼51.26ms] Passed 4 tests
An overview of server-side resources used by LSD Google Maps Embedder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 5.26 ▼34.75 |
Dashboard /wp-admin | 2.10 ▼1.21 | 6.41 ▼46.14 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.52 ▼42.42 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.25 ▼81.73 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.63 ▼29.91 |
Google Maps /wp-admin/options-general.php?page=google_maps_embedder | 2.10 | 6.50 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for LSD Google Maps Embedder
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲46 | 13.31 ▼1.24 | 1.90 ▼0.16 | 40.23 ▼3.81 |
Dashboard /wp-admin | 2,216 ▲39 | 5.87 ▲0.34 | 90.06 ▼9.89 | 36.82 ▼7.45 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.31 ▲0.27 | 40.52 ▲5.07 | 34.49 ▲2.54 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.71 ▲0.19 | 664.69 ▼47.62 | 36.69 ▼17.13 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.49 ▲0.31 | 105.28 ▲1.00 | 46.21 ▲0.61 |
Google Maps /wp-admin/options-general.php?page=google_maps_embedder | 870 | 2.08 | 28.83 | 29.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/lsd-google-maps-embedder/views/shortcode.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; lsd_gme_shortcode has a deprecated constructor
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
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
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=google_maps_embedder
- > Deprecated in wp-content/plugins/lsd-google-maps-embedder/views/shortcode.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; lsd_gme_shortcode has a deprecated constructor
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lsd-google-maps-embedder/lsd-google-maps.embedder.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/lsd-google-maps-embedder/views/shortcode.php:8
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/lsd-google-maps-embedder/lsd-google-maps.embedder.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (WYSIWYG Editor popup window in Wordpress admin), #2 (This is how Places mode looks like), #3 (This is how Directions mode looks like), #4 (This is how Search mode looks like), #5 (This is how View mode looks like)
lsd-google-maps-embedder/lsd-google-maps.embedder.php 92% from 13 tests
The entry point to "LSD Google Maps Embedder" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lsd-google-maps-embedder.php" instead of "lsd-google-maps.embedder.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 plugin367 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 86 | 20 | 143 |
HTML | 1 | 13 | 4 | 124 |
JavaScript | 2 | 19 | 21 | 100 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.94MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/lsd-gme.png | 1.29KB | 1.36KB | 0.00% |
screenshot-2.png | 70.25KB | 28.84KB | ▼ 58.95% |
screenshot-4.png | 224.61KB | 92.27KB | ▼ 58.92% |
screenshot-1.png | 14.60KB | 7.73KB | ▼ 47.02% |
screenshot-3.png | 291.85KB | 116.55KB | ▼ 60.06% |