Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼141.43ms] Passed 4 tests
An overview of server-side resources used by InLocation
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 42.45 ▲17.89 |
Dashboard /wp-admin | 3.14 ▲0.08 | 60.86 ▲14.37 |
Posts /wp-admin/edit.php | 3.22 ▲0.12 | 48.35 ▼0.15 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 100.44 ▼579.43 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 35.63 ▼0.49 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 718 new files
Database: 1 new table, no new options
New tables |
---|
wp_il_local |
Browser metrics Passed 4 tests
An overview of browser requirements for InLocation
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,729 ▲133 | 15.98 ▲0.45 | 13.91 ▲3.82 | 52.31 ▼7.01 |
Dashboard /wp-admin | 2,993 ▲62 | 6.04 ▲0.05 | 145.12 ▼18.12 | 119.73 ▼3.06 |
Posts /wp-admin/edit.php | 2,771 ▲32 | 2.76 ▲0.05 | 79.23 ▲8.55 | 102.61 ▲9.04 |
Add New Post /wp-admin/post-new.php | 1,639 ▲24 | 21.90 ▲0.79 | 287.91 ▼11.16 | 117.78 ▲1.60 |
Media Library /wp-admin/upload.php | 1,833 ▲26 | 5.05 ▲0.03 | 168.28 ▲4.64 | 130.39 ▲4.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | 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 fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/inlocation/inlocation.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Screenshots: Please a description for screenshot #4 in inlocation/assets to your readme.txt
inlocation/inlocation.php Passed 13 tests
The main file in "InLocation" v. 1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
76 characters long description:
Plugin para criar um Mapa (via GoogleMaps) com seu endereço fisico por CEPs
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 plugin1,231 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 103 | 34 | 681 |
PHP | 2 | 127 | 36 | 339 |
PO File | 2 | 52 | 52 | 138 |
CSS | 2 | 11 | 2 | 73 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
699 PNG files occupy 0.77MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon/shower.png | 1.33KB | 1.00KB | ▼ 25.15% |
images/icon/daycare.png | 1.68KB | 1.02KB | ▼ 39.10% |
images/icon/campfire-2.png | 0.94KB | 0.59KB | ▼ 37.27% |
images/icon/bank.png | 1.07KB | 0.74KB | ▼ 31.04% |
images/icon/snowy-2.png | 1.75KB | 1.07KB | ▼ 38.94% |