Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼177.58ms] Passed 4 tests
A check of server-side resources used by Mage Google Maps
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.03 | 25.33 ▼2.00 |
Dashboard /wp-admin | 3.11 ▲0.04 | 35.44 ▼6.71 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 37.02 ▲1.63 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 76.37 ▼702.02 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 27.03 ▲0.42 |
Maps /wp-admin/admin.php?page=mage_maps | 3.04 | 45.92 |
Dashboard /wp-admin/admin.php?page=mage_cast | 3.01 | 23.85 |
Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 221 new files
Database: no new tables, 1 new option
New WordPress options |
---|
mage_maps |
Browser metrics Passed 4 tests
An overview of browser requirements for Mage Google Maps
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,732 ▲131 | 16.82 ▲0.74 | 13.32 ▲8.24 | 75.69 ▼2.31 |
Dashboard /wp-admin | 2,964 ▲65 | 6.11 ▼0.04 | 114.32 ▼16.44 | 193.39 ▲21.80 |
Posts /wp-admin/edit.php | 2,767 ▲61 | 3.24 ▲0.01 | 65.74 ▲3.15 | 132.25 ▼7.58 |
Add New Post /wp-admin/post-new.php | 3,756 ▼57 | 18.87 ▼0.01 | 440.41 ▼5.05 | 188.47 ▲28.70 |
Media Library /wp-admin/upload.php | 1,777 ▲25 | 5.58 ▲0.07 | 126.67 ▼19.98 | 197.15 ▲14.39 |
Maps /wp-admin/admin.php?page=mage_maps | 2,064 | 3.33 | 61.99 | 179.87 |
Dashboard /wp-admin/admin.php?page=mage_cast | 1,127 | 3.07 | 59.39 | 104.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- mage_maps
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 37 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mage_cast
- > Warning in wp-content/plugins/mage-google-maps/core/mage-cast.php+199
preg_replace(): Compilation failed: invalid range in character class at offset 13
SRP 50% from 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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mage-google-maps/core/mage-cast.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (25 tag instead of maximum 10); only the first 5 tags are used in your directory listing
mage-google-maps/mage-google-maps.php 92% from 13 tests
The main PHP file in "Mage Google Maps" ver. 1.1.2 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:
- Domain Path: The domain path points to a folder that does not exist ("/lang/")
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
Good job! No executable or dangerous file extensions detected12,192 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 1,155 | 70 | 7,800 |
PHP | 6 | 38 | 125 | 1,529 |
JavaScript | 4 | 322 | 67 | 1,454 |
SVG | 3 | 0 | 1 | 1,409 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 5.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 66 | |
▷ Named functions | 66 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
195 compressed PNG files occupy 0.30MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
source/img/keynote.png | 0.56KB | 0.73KB | 0.00% |
source/img/bullhorn.png | 0.58KB | 0.72KB | 0.00% |
source/img/bell.png | 0.59KB | 0.75KB | 0.00% |
source/img/binoculars.png | 0.51KB | 0.62KB | 0.00% |
source/img/dumbbell.png | 0.39KB | 0.40KB | 0.00% |