Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/awesome-google-maps/awesome-google-maps.php+44
Use of undefined constant is_admin - assumed 'is_admin' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.77MB] [CPU: ▼190.12ms] Passed 4 tests
Server-side resources used by Awesome Google Maps
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.87 ▼0.86 | 6.11 ▼13.97 |
Dashboard /wp-admin | 1.89 ▼1.17 | 6.22 ▼40.18 |
Posts /wp-admin/edit.php | 1.89 ▼1.22 | 5.60 ▼38.77 |
Add New Post /wp-admin/post-new.php | 1.89 ▼3.55 | 5.81 ▼653.91 |
Media Library /wp-admin/upload.php | 1.89 ▼1.12 | 5.39 ▼27.60 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Awesome Google Maps
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,711 ▲115 | 16.54 ▲0.98 | 16.80 ▲6.18 | 49.20 ▼1.71 |
Dashboard /wp-admin | 2,967 ▲36 | 5.93 ▼0.06 | 137.48 ▼4.69 | 111.93 ▼4.97 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.12 | 61.85 ▼4.49 | 94.05 ▼4.26 |
Add New Post /wp-admin/post-new.php | 1,872 ▲200 | 19.13 ▲0.29 | 353.42 ▼13.26 | 109.41 ▲0.49 |
Media Library /wp-admin/upload.php | 1,807 ▲3 | 5.03 ▲0.01 | 140.22 ▼6.69 | 122.47 ▼4.86 |
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
The following items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/awesome-google-maps/awesome-google-maps.php+44
Use of undefined constant is_admin - assumed 'is_admin' (this will throw an Error in a future version of PHP)
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (32 tag instead of maximum 10)
awesome-google-maps/awesome-google-maps.php 92% from 13 tests
The main PHP file in "Awesome Google Maps" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("3.0" instead of "3.8")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin299 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 92 | 13 | 299 |
PHP code Passed 2 tests
Analyzing 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.42 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 6.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.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 | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 5 | 71.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 28.57% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
8 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pin-grey.png | 4.63KB | 1.58KB | ▼ 65.91% |
images/pin-red.png | 4.40KB | 1.58KB | ▼ 64.20% |
images/pin-yellow.png | 4.39KB | 1.55KB | ▼ 64.57% |
images/pin-black.png | 4.58KB | 1.49KB | ▼ 67.46% |
images/fullscreen.png | 1.56KB | 1.13KB | ▼ 27.62% |