Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.75MB] [CPU: ▲1.77ms] Passed 4 tests
An overview of server-side resources used by MapPress Maps for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.76 | 43.64 ▲4.25 |
Dashboard /wp-admin | 4.06 ▲0.72 | 53.31 ▼7.23 |
Posts /wp-admin/edit.php | 4.14 ▲0.78 | 57.69 ▲12.63 |
Add New Post /wp-admin/post-new.php | 6.66 ▲0.78 | 88.51 ▲4.67 |
Media Library /wp-admin/upload.php | 3.98 ▲0.76 | 41.02 ▲5.38 |
Support /wp-admin/admin.php?page=mappress_support | 3.91 | 39.20 |
Maps /wp-admin/admin.php?page=mappress_maps | 4.03 | 43.77 |
Settings /wp-admin/admin.php?page=mappress | 3.99 | 47.43 |
Server storage [IO: ▲1.24MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 61 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_mapp_maps |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
mappress_review |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
mappress_db_version |
mappress_version |
Browser metrics Passed 4 tests
A check of browser resources used by MapPress Maps for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,000 ▲253 | 13.86 ▼0.49 | 1.55 ▼0.16 | 44.71 ▼0.30 |
Dashboard /wp-admin | 2,399 ▲219 | 5.60 ▼0.10 | 92.29 ▲2.42 | 43.50 ▲0.64 |
Posts /wp-admin/edit.php | 2,422 ▲322 | 10.52 ▲8.57 | 235.64 ▲195.05 | 36.94 ▲5.24 |
Add New Post /wp-admin/post-new.php | 1,582 ▲56 | 24.08 ▲0.38 | 702.86 ▲60.34 | 39.34 ▼13.16 |
Media Library /wp-admin/upload.php | 1,719 ▲316 | 4.18 ▼0.01 | 97.10 ▼3.80 | 41.63 ▲0.10 |
Support /wp-admin/admin.php?page=mappress_support | 1,185 | 10.03 | 99.89 | 37.33 |
Maps /wp-admin/admin.php?page=mappress_maps | 1,815 | 15.22 | 209.64 | 33.92 |
Settings /wp-admin/admin.php?page=mappress | 2,876 | 10.00 | 165.99 | 53.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_mapp_maps
- Zombie WordPress options were found after uninstall: 9 options
- can_compress_scripts
- mappress_version
- db_upgraded
- widget_theysaidso_widget
- mappress_review
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- mappress_db_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% 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 fix the following
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/mappress-google-maps-for-wordpress/templates/mashup-item.php
- > /wp-content/plugins/mappress-google-maps-for-wordpress/templates/mashup-popup.php
- > /wp-content/plugins/mappress-google-maps-for-wordpress/templates/map-item.php
- > /wp-content/plugins/mappress-google-maps-for-wordpress/templates/map-popup.php
- > /wp-content/plugins/mappress-google-maps-for-wordpress/templates/user-mashup-popup.php
- > /wp-content/plugins/mappress-google-maps-for-wordpress/templates/user-mashup-item.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/mappress-google-maps-for-wordpress/mappress_api.php:2
- > PHP Fatal error
Uncaught Error: Class 'Mappress_Obj' not found in wp-content/plugins/mappress-google-maps-for-wordpress/mappress_template.php:2
- > PHP Fatal error
Uncaught Error: Class 'Mappress_Obj' not found in wp-content/plugins/mappress-google-maps-for-wordpress/mappress_settings.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mappress_Obj' not found in wp-content/plugins/mappress-google-maps-for-wordpress/mappress_poi.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function the_post_thumbnail() in wp-content/plugins/mappress-google-maps-for-wordpress/templates/mashup-modal.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/mappress-google-maps-for-wordpress/mappress_api.php:2
- > PHP Fatal error
Uncaught Error: Class 'Mappress_Obj' not found in wp-content/plugins/mappress-google-maps-for-wordpress/mappress_map.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mappress-google-maps-for-wordpress/languages/texts.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 your attention:
- Screenshots: A description for screenshot #5 is required in mappress-google-maps-for-wordpress/assets to your readme.txt
- Tags: There are too many tags (15 tag instead of maximum 10)
mappress-google-maps-for-wordpress/mappress.php 92% from 13 tests
The primary PHP file in "MapPress Maps for WordPress" version 2.88.13 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mappress-google-maps-for-wordpress.php" instead of "mappress.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin7,315 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 869 | 462 | 4,032 |
PHP | 17 | 550 | 352 | 3,276 |
JavaScript | 5 | 0 | 6 | 5 |
SVG | 2 | 0 | 0 | 2 |
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.32 |
Average class complexity | 52.82 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 246.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 147 | |
▷ Static methods | 112 | 76.19% |
▷ Public methods | 147 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 16 | 100.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
22 PNG files occupy 0.24MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/roadmap.png | 31.18KB | 11.59KB | ▼ 62.82% |
images/search.png | 0.26KB | 0.21KB | ▼ 20.30% |
lib/leaflet/images/layers.png | 0.68KB | 1.05KB | 0.00% |
images/outline_format_list_bulleted_black_18dp.png | 0.14KB | 0.18KB | 0.00% |
images/get-directions.png | 0.29KB | 0.32KB | 0.00% |