Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/robo-maps/robo-maps.php+22
Use of undefined constant ROBO_MAPS_PATH - assumed 'ROBO_MAPS_PATH' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.96MB] [CPU: ▼49.81ms] Passed 4 tests
Server-side resources used by Maps - Google Maps
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 7.25 ▼33.27 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.91 ▼40.84 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.50 ▼43.16 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.91 ▼81.97 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.71 ▼29.54 |
Server storage [IO: ▲2.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 67 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_robo_maps |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Maps - Google Maps
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲174 | 14.88 ▲0.89 | 25.08 ▲22.89 | 39.80 ▼8.58 |
Dashboard /wp-admin | 2,222 ▲37 | 5.89 ▲0.07 | 113.73 ▲6.54 | 43.09 ▼4.01 |
Posts /wp-admin/edit.php | 2,141 ▲49 | 3.12 ▲1.09 | 60.93 ▲25.93 | 32.55 ▼0.44 |
Add New Post /wp-admin/post-new.php | 1,558 ▲16 | 24.43 ▲6.06 | 653.54 ▲13.60 | 33.55 ▼23.14 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.27 ▼0.09 | 93.96 ▼5.14 | 42.15 ▼4.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/robo-maps/robo-maps.php+22
Use of undefined constant ROBO_MAPS_PATH - assumed 'ROBO_MAPS_PATH' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_robo_maps
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
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
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/robo-maps/admin/partials/robo-maps-admin-display-dialog.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/robo-maps/admin/partials/robo-maps-admin-display.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/robo-maps/admin/partials/robo-maps-admin-display-form.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: maps, google maps, map markers, wordpress google maps, marker
robo-maps/robo-maps.php 92% from 13 tests
"Maps - Google Maps" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 231 characters long)
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 detected18,815 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 64 | 61 | 13,631 |
JavaScript | 8 | 1,094 | 552 | 3,458 |
PHP | 14 | 193 | 143 | 915 |
PO File | 2 | 238 | 794 | 582 |
SVG | 1 | 0 | 0 | 229 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 6.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 1.15MB with 0.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screenshots/screenshot5.png | 167.18KB | 67.30KB | ▼ 59.74% |
images/screenshots/screenshot4.png | 146.76KB | 59.01KB | ▼ 59.79% |
images/screenshots/screenshot1.png | 171.87KB | 68.02KB | ▼ 60.42% |
images/logo.png | 7.28KB | 3.74KB | ▼ 48.68% |
images/admin_plugin_userguide.png | 310.53KB | 144.49KB | ▼ 53.47% |