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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.18ms] Passed 4 tests
An overview of server-side resources used by Advanced Google Map Block
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 34.75 ▼5.11 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.05 ▼2.88 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.82 ▼1.03 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.38 ▼15.68 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 38.61 ▼0.27 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Google Map Block
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲31 | 14.27 ▲0.05 | 1.51 ▼0.06 | 39.00 ▼0.11 |
Dashboard /wp-admin | 2,192 ▲11 | 5.56 ▼0.10 | 80.27 ▼21.79 | 38.87 ▼3.58 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.04 ▲0.01 | 33.14 ▼7.31 | 34.94 ▼4.25 |
Add New Post /wp-admin/post-new.php | 6,366 ▲4,835 | 27.71 ▲4.26 | 933.23 ▲304.30 | 64.98 ▼1.34 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.19 ▼0.05 | 109.76 ▲15.33 | 48.48 ▲5.60 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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: google, map, maps, google map, place...
advanced-google-map-block/advanced-google-map-block.php 85% from 13 tests
The primary PHP file in "Advanced Google Map Block" version 1.1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/languages/")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 plugin110 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 55 |
PHP | 2 | 20 | 44 | 52 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 14.29% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected