Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▼8.49ms] Passed 4 tests
A check of server-side resources used by LB GMaps
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 36.17 ▼2.87 |
Dashboard /wp-admin | 3.55 ▲0.24 | 45.57 ▲2.69 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 46.83 ▼3.57 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 80.55 ▼28.96 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 36.71 ▲1.43 |
LB GMaps /wp-admin/edit.php?post_type=lb-gmaps | 3.45 | 37.08 |
Add LB GMap /wp-admin/post-new.php?post_type=lb-gmaps | 3.62 | 49.24 |
Settings /wp-admin/edit.php?post_type=lb-gmaps&page=lb-gmaps-settings | 3.37 | 29.11 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 26 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_lb_gmaps |
wp_lb_gmaps_markers |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
LB GMaps: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲204 | 15.06 ▲0.68 | 15.78 ▲13.63 | 38.62 ▼11.30 |
Dashboard /wp-admin | 2,236 ▲51 | 5.83 ▲0.95 | 113.02 ▼3.22 | 69.21 ▲23.81 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 1.97 ▼0.02 | 38.39 ▼2.25 | 34.24 ▼0.61 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 23.37 ▲5.89 | 764.83 ▲65.29 | 58.41 ▲6.95 |
Media Library /wp-admin/upload.php | 1,415 ▲33 | 4.16 ▼0.02 | 94.90 ▼11.29 | 71.31 ▲24.31 |
LB GMaps /wp-admin/edit.php?post_type=lb-gmaps | 1,099 | 1.93 | 35.24 | 32.83 |
Add LB GMap /wp-admin/post-new.php?post_type=lb-gmaps | 2,519 | 7.71 | 175.74 | 136.93 |
Settings /wp-admin/edit.php?post_type=lb-gmaps&page=lb-gmaps-settings | 826 | 2.02 | 22.90 | 23.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/lb-gmaps/views/lb_gmaps_marker_info.php
- > /wp-content/plugins/lb-gmaps/views/lb_gmaps_map_searching_field.php
- > /wp-content/plugins/lb-gmaps/views/lb_gmaps_marker_form.php
- > /wp-content/plugins/lb-gmaps/views/lb_gmaps_map_directions_type.php
- > /wp-content/plugins/lb-gmaps/views/lb_gmaps_map_contextmenu.php
- > /wp-content/plugins/lb-gmaps/views/lb_gmaps_marker_transfer.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/lb-gmaps/includes/lb_gmaps_constants.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/lb-gmaps/includes/lb_gmaps_constants.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/lb-gmaps/includes/metabox/lb_gmaps_metabox.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== lb-gmaps ===
) - Screenshots: These screenshots need descriptions #1, #2 in lb-gmaps/assets to your readme.txt
lb-gmaps/lb_gmaps.php 92% from 13 tests
This is the main PHP file of "LB GMaps" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("lb-gmaps.php" instead of "lb_gmaps.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,551 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 196 | 123 | 1,324 |
PHP | 17 | 161 | 110 | 832 |
CSS | 3 | 67 | 0 | 395 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 86 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 69 | 80.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 19.77% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/google-maps-icon.png | 1.32KB | 1.17KB | ▼ 11.75% |