Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼142.48ms] Passed 4 tests
Server-side resources used by Leaflet Maps Marker Image Extension
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.21 | 27.93 ▲4.41 |
Dashboard /wp-admin | 3.15 ▲0.10 | 43.08 ▼1.66 |
Posts /wp-admin/edit.php | 3.26 ▲0.15 | 43.58 ▲0.04 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.07 | 88.03 ▼567.94 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 32.36 ▼0.36 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Leaflet Maps Marker Image Extension
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,720 ▲124 | 15.85 ▲0.47 | 7.60 ▼0.18 | 44.06 ▼2.92 |
Dashboard /wp-admin | 2,977 ▲44 | 6.13 ▼0.07 | 134.64 ▼13.04 | 108.87 ▼7.42 |
Posts /wp-admin/edit.php | 2,746 ▲7 | 2.69 ▼0.01 | 65.56 ▲3.05 | 93.71 ▲0.41 |
Add New Post /wp-admin/post-new.php | 1,690 ▲18 | 18.86 ▲0.07 | 352.16 ▼11.60 | 114.21 ▲6.46 |
Media Library /wp-admin/upload.php | 1,814 ▲4 | 5.05 ▲0.05 | 150.40 ▼0.76 | 110.91 ▼12.97 |
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 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/image-marker/public/partials/image-marker-public-display.php
- > /wp-content/plugins/image-marker/admin/partials/image-marker-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: nextgen, gallery, media, exif, maps marker
image-marker/image-marker.php Passed 13 tests
The main PHP file in "Leaflet Maps Marker Image Extension" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
Extension to Leaflet Maps Marker to make markers from images.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected402 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 193 | 635 | 349 |
JavaScript | 2 | 11 | 32 | 53 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 8 | 21.62% |
▷ Public methods | 30 | 81.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 18.92% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 49.66KB | 20.26KB | ▼ 59.20% |
assets/screenshot-2.png | 76.72KB | 28.23KB | ▼ 63.20% |