Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.41MB] [CPU: ▼0.28ms] Passed 4 tests
This is a short check of server-side resources used by Map Engine - Google Maps and Open Street Maps for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 45.68 ▼0.38 |
Dashboard /wp-admin | 3.77 ▲0.47 | 55.89 ▼1.62 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 55.75 ▲5.64 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 93.34 ▲0.35 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 39.31 ▲0.51 |
Maps /wp-admin/edit.php?post_type=me_maps | 3.73 | 40.37 |
Settings /wp-admin/edit.php?post_type=me_maps&page=map-engine-settings | 3.61 | 36.88 |
Server storage [IO: ▲1.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Map Engine - Google Maps and Open Street Maps for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲75 | 14.34 ▲0.07 | 1.79 ▼0.24 | 40.95 ▼2.19 |
Dashboard /wp-admin | 2,222 ▲45 | 5.57 ▼0.01 | 87.06 ▼7.37 | 83.86 ▲40.51 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 2.00 ▲0.00 | 38.42 ▲2.10 | 34.95 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,566 ▲38 | 23.27 ▲0.23 | 732.89 ▲112.41 | 50.55 ▼2.32 |
Media Library /wp-admin/upload.php | 1,454 ▲54 | 4.24 ▲0.06 | 105.47 ▼20.70 | 77.73 ▲29.76 |
Maps /wp-admin/edit.php?post_type=me_maps | 1,122 | 1.97 | 33.82 | 30.84 |
Settings /wp-admin/edit.php?post_type=me_maps&page=map-engine-settings | 1,007 | 2.82 | 53.77 | 27.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WPV_ME\\Core\\Admin' not found in wp-content/plugins/map-engine/includes/core/admin/apps/edit.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPV_ME\\Integrations\\MapBase' not found in wp-content/plugins/map-engine/includes/integrations/google_map.php:6
- > PHP Fatal error
Uncaught Error: Class 'WPV_ME\\Core\\CMS' not found in wp-content/plugins/map-engine/includes/init.php:24
- > PHP Fatal error
Uncaught Error: Class 'WPV_ME\\Core\\Admin' not found in wp-content/plugins/map-engine/includes/core/admin/apps/settings.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPV_ME\\Integrations\\MapBase' not found in wp-content/plugins/map-engine/includes/integrations/open_map.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
map-engine/map-engine.php 92% from 13 tests
This is the main PHP file of "Map Engine - Google Maps and Open Street Maps for WordPress" version 0.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected7,644 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 984 | 109 | 4,571 |
PHP | 28 | 583 | 239 | 2,263 |
JavaScript | 9 | 72 | 34 | 757 |
SVG | 3 | 0 | 1 | 48 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 18.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 1 | 5.56% |
▷ Concrete classes | 17 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 148 | |
▷ Static methods | 50 | 33.78% |
▷ Public methods | 129 | 87.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 12.84% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 13 | |
▷ Global constants | 13 | 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
8 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/images/marker-icon.2b3e1faf.png | 1.43KB | 1.55KB | 0.00% |
assets/os-192.png | 19.17KB | 19.10KB | 0.38% |
assets/gmap-192.png | 10.54KB | 10.38KB | ▼ 1.55% |
dist/images/staticmap.bd03b7de.png | 23.87KB | 25.45KB | 0.00% |
dist/images/layers-2x.8f2c4d11.png | 1.23KB | 1.67KB | 0.00% |