Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.14ms] Passed 4 tests
An overview of server-side resources used by Metronet Google Maps
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.49 ▼1.10 |
Dashboard /wp-admin | 3.35 ▲0.04 | 49.85 ▼2.56 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.35 ▼5.35 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 90.20 ▼3.54 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.33 ▲0.04 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Metronet Google Maps
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 14.75 ▼0.04 | 1.76 ▼0.01 | 41.87 ▼2.51 |
Dashboard /wp-admin | 2,209 ▲17 | 5.85 ▼0.08 | 110.30 ▼0.10 | 71.82 ▲26.08 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.01 ▼0.05 | 34.58 ▼0.90 | 33.11 ▼2.52 |
Add New Post /wp-admin/post-new.php | 1,680 ▲166 | 21.97 ▲4.29 | 676.15 ▼22.30 | 56.31 ▼0.69 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.22 ▲0.03 | 109.30 ▲12.34 | 79.82 ▲34.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/metronet-google-maps/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Once you've saved your map, click "Get shortcode" to get the code that needs to be pasted where you want), #2 (Select a title, width, height for your map and create as many markers as you like.), #3 (You can use the helpful latitude and longitude finder to get the appropriate values for your address. You can), #4 (Voila! After pasting the shortcode into your content, you have a Google map that is bounded to your markers.)
metronet-google-maps/index.php 92% from 13 tests
This is the main PHP file of "Metronet Google Maps" version 1.0.0, 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:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("metronet-google-maps.php" instead of "index.php")
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
Success! There were no dangerous files found in this plugin912 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 71 | 168 | 448 |
JavaScript | 1 | 46 | 7 | 260 |
CSS | 1 | 28 | 7 | 204 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.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
8 PNG files occupy 0.20MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
metronet-icon-small.png | 1.92KB | 0.47KB | ▼ 75.45% |
screenshot-4.png | 103.44KB | 35.95KB | ▼ 65.24% |
screenshot-3.png | 44.74KB | 12.97KB | ▼ 71.01% |
images/white-grad-active.png | 0.22KB | 0.18KB | ▼ 17.49% |
screenshot-2.png | 32.83KB | 8.28KB | ▼ 74.77% |