Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼139.00ms] Passed 4 tests
A check of server-side resources used by LocatorAgency
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.10 | 45.44 ▲17.94 |
Dashboard /wp-admin | 3.16 ▲0.10 | 45.76 ▲2.82 |
Posts /wp-admin/edit.php | 3.22 ▲0.09 | 44.82 ▼6.80 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.08 | 91.53 ▼554.04 |
Media Library /wp-admin/upload.php | 3.11 ▲0.10 | 34.04 ▲2.02 |
Locators /wp-admin/edit.php?post_type=locator_agency | 3.15 | 30.85 |
Add new Locator /wp-admin/post-new.php?post_type=locator_agency | 3.22 | 52.27 |
Locator Option /wp-admin/options-general.php?page=slug-agency-locator | 3.05 | 30.00 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 54 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for LocatorAgency
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,969 ▲332 | 17.54 ▲2.04 | 20.41 ▲9.76 | 59.57 ▲12.90 |
Dashboard /wp-admin | 3,115 ▲178 | 6.64 ▲0.67 | 138.09 ▼4.86 | 113.92 ▲5.20 |
Posts /wp-admin/edit.php | 2,884 ▲145 | 2.97 ▲0.25 | 70.36 ▲7.77 | 95.60 ▲3.14 |
Add New Post /wp-admin/post-new.php | 1,710 ▲212 | 19.01 ▲0.22 | 372.41 ▼5.08 | 120.82 ▲7.74 |
Media Library /wp-admin/upload.php | 1,934 ▲127 | 5.70 ▲0.66 | 129.36 ▼20.16 | 121.82 ▲1.26 |
Locators /wp-admin/edit.php?post_type=locator_agency | 1,551 | 3.15 | 66.19 | 78.82 |
Add new Locator /wp-admin/post-new.php?post_type=locator_agency | 3,224 | 9.42 | 218.80 | 156.22 |
Locator Option /wp-admin/options-general.php?page=slug-agency-locator | 1,561 | 2.77 | 54.12 | 100.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=slug-agency-locator
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=slug-agency-locator
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/locatoragency/view/meta_adresse_locator.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/locatoragency/index.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/post-new.php?post_type=locator_agency
- > Network (severe)
http://maps.googleapis.com/maps/api/mapsjs/gen_204?csp_test=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 ('/assets/screenshot-1.png'), #2 (`/assets/screenshot-2.png`), #3 (`/assets/screenshot-3.png`)
locatoragency/index.php 92% from 13 tests
"LocatorAgency" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("locatoragency.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected627 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 62 | 113 | 499 |
PO File | 1 | 34 | 50 | 82 |
CSS | 2 | 5 | 0 | 36 |
JavaScript | 1 | 1 | 0 | 10 |
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.24 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
43 PNG files occupy 0.27MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/pin.png | 2.91KB | 1.90KB | ▼ 34.62% |
images/icons/nursery.png | 0.92KB | 0.66KB | ▼ 28.92% |
images/icons/nanny.png | 0.99KB | 0.70KB | ▼ 29.41% |
images/icons/drugstore.png | 0.68KB | 0.46KB | ▼ 31.65% |
images/icons/group-2.png | 0.86KB | 0.67KB | ▼ 22.01% |