Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼141.05ms] Passed 4 tests
An overview of server-side resources used by Multiple Location Google Map
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.80 ▼0.03 | 34.31 ▼2.96 |
Dashboard /wp-admin | 3.11 ▲0.05 | 55.34 ▲13.53 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 44.51 ▼0.26 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 93.66 ▼559.40 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 36.30 ▼1.59 |
All Location /wp-admin/edit.php?post_type=mlgm | 3.09 | 28.23 |
Settings /wp-admin/edit.php?post_type=mlgm&page=mlgmsetting | 3.02 | 26.61 |
Add New /wp-admin/post-new.php?post_type=mlgm | 3.15 | 46.15 |
Server storage [IO: ▲4.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 61 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Multiple Location Google Map
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,785 ▲189 | 16.21 ▲0.18 | 8.97 ▼0.78 | 44.93 ▼4.17 |
Dashboard /wp-admin | 3,048 ▲111 | 6.58 ▲0.35 | 137.79 ▼22.29 | 104.23 ▼3.36 |
Posts /wp-admin/edit.php | 2,814 ▲75 | 3.02 ▲0.31 | 71.71 ▲2.36 | 98.84 ▲12.67 |
Add New Post /wp-admin/post-new.php | 1,736 ▲53 | 18.54 ▼0.19 | 360.19 ▼30.46 | 124.24 ▲17.71 |
Media Library /wp-admin/upload.php | 1,897 ▲90 | 5.43 ▲0.37 | 149.31 ▲0.20 | 114.60 ▼11.96 |
All Location /wp-admin/edit.php?post_type=mlgm | 1,481 | 2.93 | 63.90 | 73.21 |
Settings /wp-admin/edit.php?post_type=mlgm&page=mlgmsetting | 1,301 | 2.59 | 65.98 | 78.69 |
Add New /wp-admin/post-new.php?post_type=mlgm | 2,975 | 9.22 | 217.65 | 137.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/edit.php?post_type=mlgm&page=mlgmsetting
- > Notice in wp-content/plugins/multiple-location-google-map/includes/admin/settings.php+6
Undefined variable: tabactivestyleClass
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=mlgm&page=mlgmsetting
- > Notice in wp-content/plugins/multiple-location-google-map/includes/admin/setting/manage_maps.php+71
Trying to access array offset on value of type null
SRP 50% from 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
Please fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/multiple-location-google-map/includes/admin/settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multiple-location-google-map/includes/admin/installation.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/multiple-location-google-map/includes/admin/setting/manage_maps.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/multiple-location-google-map/includes/admin/setting/manage_style.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
multiple-location-google-map/multiple-location-google-map.php 92% from 13 tests
The main file in "Multiple Location Google Map" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
No dangerous file extensions were detected2,125 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 1,281 | 52 | 1,191 |
PHP | 14 | 94 | 43 | 729 |
JavaScript | 4 | 33 | 10 | 205 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 6 | 100.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 14.29% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
20 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 |
asset/images/location_icon_0001_Layer-9.png | 1.84KB | 1.03KB | ▼ 43.78% |
Latest/multiple-location-google-map/asset/images/location_icon_0002_Layer-8.png | 1.54KB | 0.70KB | ▼ 54.34% |
asset/images/location_icon_0009_Layer-1.png | 1.62KB | 0.60KB | ▼ 63.30% |
Latest/multiple-location-google-map/asset/images/location_icon_0007_Layer-3.png | 1.35KB | 0.72KB | ▼ 46.61% |
Latest/multiple-location-google-map/asset/images/location_icon_0000_Layer-10.png | 1.46KB | 0.75KB | ▼ 48.69% |