Benchmarks
Plugin footprint 83% from 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.09MB] [CPU: ▼138.61ms] Passed 4 tests
This is a short check of server-side resources used by WP MAPGrip
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 40.64 ▲20.67 |
Dashboard /wp-admin | 3.13 ▲0.08 | 48.37 ▲3.13 |
Posts /wp-admin/edit.php | 3.24 ▲0.14 | 36.70 ▼5.92 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 96.18 ▼555.56 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 35.41 ▲3.90 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 4 new options
New WordPress options |
---|
mapgrip_api_url |
mapgrip_width |
mapgrip_embed_url |
mapgrip_height |
Browser metrics Passed 4 tests
A check of browser resources used by WP MAPGrip
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,811 ▲215 | 16.17 ▲0.61 | 14.47 ▲3.93 | 48.33 ▲0.65 |
Dashboard /wp-admin | 2,997 ▲66 | 6.15 ▲0.14 | 156.83 ▼4.57 | 109.12 ▼1.93 |
Posts /wp-admin/edit.php | 2,763 ▲24 | 2.72 ▲0.02 | 65.28 ▼3.39 | 93.72 ▲7.00 |
Add New Post /wp-admin/post-new.php | 1,690 ▲7 | 19.16 ▲0.70 | 399.81 ▼10.49 | 108.05 ▼1.62 |
Media Library /wp-admin/upload.php | 1,834 ▲27 | 5.04 ▲0.01 | 153.88 ▲4.38 | 120.31 ▲3.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 4 options
- mapgrip_embed_url
- mapgrip_api_url
- mapgrip_height
- mapgrip_width
Smoke tests 75% 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 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
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-mapgrip/public/partials/mapgrip-public-display.php
- > /wp-content/plugins/wp-mapgrip/admin/partials/mapgrip-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, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please a description for screenshot #1 in wp-mapgrip/assets to your readme.txt
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-mapgrip ===
)
wp-mapgrip/mapgrip.php 85% from 13 tests
The main PHP file in "WP MAPGrip" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-mapgrip.php" instead of "mapgrip.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected346 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 169 | 582 | 336 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin