Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼4.30ms] Passed 4 tests
Server-side resources used by Mapinco Easy Maps
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 34.48 ▼5.16 |
Dashboard /wp-admin | 3.42 ▲0.11 | 44.63 ▼1.67 |
Posts /wp-admin/edit.php | 3.54 ▲0.17 | 47.52 ▲5.11 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 82.18 ▼11.07 |
Media Library /wp-admin/upload.php | 3.35 ▲0.11 | 35.35 ▲0.69 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Mapinco Easy Maps: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲197 | 14.68 ▲0.29 | 17.66 ▲15.85 | 37.58 ▼12.13 |
Dashboard /wp-admin | 2,221 ▲33 | 5.91 ▲0.02 | 95.98 ▼9.70 | 42.28 ▼0.91 |
Posts /wp-admin/edit.php | 2,101 ▲9 | 2.03 ▲0.04 | 40.14 ▲4.10 | 35.91 ▲4.65 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 23.21 ▲0.09 | 685.53 ▼31.12 | 58.09 ▼0.96 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.28 ▲0.10 | 97.50 ▼11.58 | 44.16 ▼0.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/mapinco-easy-maps/easymaps.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mapinco-easy-maps/controllers/front/FrontMapsController.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mapinco-easy-maps/controllers/admin/AdminMapsController.php:4
- > 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 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: map, google maps, openstreetmap, leaflet, leafletjs
mapinco-easy-maps/easymaps.php 85% from 13 tests
The entry point to "Mapinco Easy Maps" version 0.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mapinco-easy-maps.php" instead of "easymaps.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin2,675 lines of code in 78 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 120 | 27 | 1,059 |
JavaScript | 66 | 170 | 102 | 973 |
PHP | 3 | 55 | 29 | 496 |
PO File | 1 | 22 | 22 | 65 |
Markdown | 1 | 23 | 0 | 55 |
JSON | 1 | 0 | 0 | 26 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/leaflet/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
inc/leaflet/images/layers.png | 0.68KB | 1.05KB | 0.00% |
inc/leaflet/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
inc/leaflet/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
inc/leaflet/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |