Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼289.97ms] Passed 4 tests
A check of server-side resources used by Advanced Google Maps Shortcode
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 56.00 ▲5.45 |
Dashboard /wp-admin | 3.43 ▲0.02 | 32.43 ▼0.20 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 39.22 ▲4.32 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 92.06 ▼1,164.85 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 25.84 ▲0.87 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Google Maps Shortcode
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲49 | 16.01 ▲0.34 | 6.36 ▼0.41 | 2.35 ▲0.39 |
Dashboard /wp-admin | 2,895 ▲37 | 6.16 ▼0.04 | 118.81 ▼16.71 | 165.11 ▲3.61 |
Posts /wp-admin/edit.php | 2,694 ▲6 | 3.24 ▲0.01 | 62.79 ▲0.93 | 139.43 ▼0.39 |
Add New Post /wp-admin/post-new.php | 1,711 ▲50 | 21.12 ▲4.67 | 437.02 ▼7.09 | 159.52 ▲9.97 |
Media Library /wp-admin/upload.php | 1,698 ▲6 | 5.48 ▼0.02 | 143.22 ▲2.09 | 187.11 ▲2.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% 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 50% 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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/advanced-google-maps-shortcode/advanced-google-maps-shortcode.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: google maps shortcode, multiple markers, shortcode, google maps, map styling
advanced-google-maps-shortcode/advanced-google-maps-shortcode.php Passed 13 tests
This is the main PHP file of "Advanced Google Maps Shortcode" version 0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
98 characters long description:
Really advanced Google Maps shortcode. Map styling, multiple markers, markers clustering and more.
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 detected849 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 217 | 500 | 715 |
PHP | 1 | 47 | 44 | 134 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
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 |
img/pin.png | 0.74KB | 0.79KB | 0.00% |