Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.36MB] [CPU: ▼46.81ms] Passed 4 tests
Analyzing server-side resources used by Mage Google Maps
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.60 ▼0.86 | 10.44 ▼31.34 |
Dashboard /wp-admin | 2.66 ▼0.65 | 16.01 ▼38.76 |
Posts /wp-admin/edit.php | 2.66 ▼0.70 | 13.01 ▼36.55 |
Add New Post /wp-admin/post-new.php | 2.65 ▼3.23 | 14.45 ▼80.57 |
Media Library /wp-admin/upload.php | 2.66 ▼0.57 | 13.28 ▼23.86 |
Dashboard /wp-admin/admin.php?page=mage_cast | 2.66 | 11.77 |
Maps /wp-admin/admin.php?page=mage_maps | 2.66 | 14.29 |
Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
It is recommended to fix the following issues
- Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/mage-google-maps/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 221 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
mage_maps |
db_upgraded |
widget_mage-google-maps |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mage Google Maps
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲135 | 14.21 ▼0.09 | 22.65 ▲20.78 | 39.55 ▼4.82 |
Dashboard /wp-admin | 2,240 ▲40 | 5.92 ▲0.06 | 101.72 ▼0.39 | 74.58 ▲32.18 |
Posts /wp-admin/edit.php | 2,119 ▲22 | 2.02 ▼0.02 | 35.48 ▼2.53 | 33.15 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,701 ▲175 | 21.88 ▲4.21 | 746.98 ▲37.06 | 56.28 ▲0.09 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.20 ▼0.02 | 97.88 ▼9.88 | 71.30 ▲23.57 |
Dashboard /wp-admin/admin.php?page=mage_cast | 903 | 2.38 | 32.24 | 79.79 |
Maps /wp-admin/admin.php?page=mage_maps | 1,599 | 2.14 | 33.28 | 79.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/mage-google-maps/cast/craft.php+27
Methods with the same name as their class will not be constructors in a future version of PHP; Mage_Google_Maps has a deprecated constructor
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_mage-google-maps
- widget_recent-posts
- theysaidso_admin_options
- mage_maps
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mage_maps
- > Deprecated in wp-content/plugins/mage-google-maps/cast/craft.php+27
Methods with the same name as their class will not be constructors in a future version of PHP; Mage_Google_Maps has a deprecated constructor
- 37 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mage_maps
- > 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > 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 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 25 tag instead of maximum 10
mage-google-maps/mage-google-maps.php 92% from 13 tests
The entry point to "Mage Google Maps" version 1.1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: The domain path folder was not found ("/lang/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin12,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
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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/leaf.png | 0.78KB | 1.07KB | 0.00% |
source/img/home.png | 0.39KB | 0.48KB | 0.00% |
source/img/pizza.png | 0.88KB | 1.25KB | 0.00% |
source/img/road.png | 0.63KB | 0.87KB | 0.00% |
source/img/hospital-h.png | 0.26KB | 0.25KB | ▼ 2.67% |