Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼7.33ms] Passed 4 tests
Analyzing server-side resources used by Andreadb Google Maps
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 41.25 ▼4.64 |
Dashboard /wp-admin | 3.60 ▲0.29 | 58.35 ▲9.87 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 54.29 ▼3.51 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 83.45 ▼20.37 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 39.00 ▼0.81 |
Add Google Maps /wp-admin/post-new.php?post_type=dba_google_maps | 3.49 | 46.09 |
Settings /wp-admin/edit.php?post_type=dba_google_maps&page=andreadb-google-maps-settings | 3.44 | 39.18 |
Donate /wp-admin/edit.php?post_type=dba_google_maps&page=andreadb-google-maps-donate | 3.44 | 36.05 |
Google Maps /wp-admin/edit.php?post_type=dba_google_maps | 3.51 | 41.71 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_andreadb_google_maps_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Andreadb Google Maps
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,110 ▲349 | 15.99 ▲1.31 | 24.65 ▲22.80 | 37.59 ▼4.92 |
Dashboard /wp-admin | 2,407 ▲204 | 6.44 ▲1.55 | 123.12 ▲17.93 | 39.08 ▼6.36 |
Posts /wp-admin/edit.php | 2,306 ▲206 | 3.35 ▲1.38 | 50.44 ▲10.00 | 35.45 ▼1.93 |
Add New Post /wp-admin/post-new.php | 1,565 ▲34 | 23.33 ▼0.08 | 659.67 ▼20.06 | 37.41 ▼24.05 |
Media Library /wp-admin/upload.php | 1,446 ▲43 | 4.17 ▼0.02 | 80.65 ▼21.88 | 47.12 ▲3.36 |
Add Google Maps /wp-admin/post-new.php?post_type=dba_google_maps | 3,262 | 7.31 | 159.20 | 136.14 |
Settings /wp-admin/edit.php?post_type=dba_google_maps&page=andreadb-google-maps-settings | 1,026 | 3.15 | 38.34 | 25.73 |
Donate /wp-admin/edit.php?post_type=dba_google_maps&page=andreadb-google-maps-donate | 996 | 3.01 | 37.82 | 25.96 |
Google Maps /wp-admin/edit.php?post_type=dba_google_maps | 1,294 | 3.44 | 42.31 | 28.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_andreadb_google_maps_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 18 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=dba_google_maps
- > Notice in wp-content/plugins/andreadb-google-maps/admin/class-andreadb-google-maps-admin.php+537
Trying to access array offset on value of type null
SRP 0% 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 items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/andreadb-google-maps/public/display/andreadb-google-maps-public.php
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/andreadb-google-maps/admin/display/andreadb-google-maps-admin-general.php:19
- > PHP Notice
Undefined variable: post in wp-content/plugins/andreadb-google-maps/admin/display/andreadb-google-maps-admin-general.php on line 15
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/andreadb-google-maps/admin/display/andreadb-google-maps-admin-general.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/andreadb-google-maps/includes/class-andreadb-google-maps-widget.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/andreadb-google-maps/admin/display/andreadb-google-maps-admin-settings.php:15
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/andreadb-google-maps/admin/display/andreadb-google-maps-admin-markers.php:13
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/andreadb-google-maps/admin/display/andreadb-google-maps-admin-markers.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/andreadb-google-maps/admin/display/andreadb-google-maps-admin-shortcodes.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/andreadb-google-maps/admin/display/andreadb-google-maps-admin-donate.php:14
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/andreadb-google-maps/admin/display/andreadb-google-maps-admin-general.php on line 19
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: google maps, maps
andreadb-google-maps/andreadb-google-maps.php Passed 13 tests
The main PHP file in "Andreadb Google Maps" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
71 characters long description:
The easiest way to create responsive Google Maps with multiple markers.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,602 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 208 | 804 | 1,192 |
CSS | 1 | 58 | 0 | 307 |
JavaScript | 1 | 11 | 16 | 103 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 53 | |
▷ Static methods | 3 | 5.66% |
▷ Public methods | 48 | 90.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.43% |
Functions | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/marker.png | 0.79KB | 0.77KB | ▼ 2.11% |