Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.76MB] [CPU: ▲0.91ms] Passed 4 tests
This is a short check of server-side resources used by Office Locator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.27 ▲0.81 | 40.80 ▲4.21 |
Dashboard /wp-admin | 4.09 ▲0.74 | 49.29 ▼11.75 |
Posts /wp-admin/edit.php | 4.14 ▲0.78 | 48.79 ▲3.43 |
Add New Post /wp-admin/post-new.php | 6.69 ▲0.80 | 203.99 ▲104.57 |
Media Library /wp-admin/upload.php | 3.95 ▲0.72 | 42.87 ▲7.75 |
Office Locator /wp-admin/admin.php?page=office-locator | 3.98 | 38.42 |
Add New /wp-admin/post-new.php?post_type=offices | 3.99 | 160.44 |
All Offices /wp-admin/edit.php?post_type=offices | 3.99 | 38.43 |
Server storage [IO: ▲3.67MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 93 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
office_locator_map |
office_locator_general |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Office Locator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,074 ▲313 | 19.64 ▲5.35 | 38.29 ▲36.72 | 46.45 ▲8.08 |
Dashboard /wp-admin | 2,304 ▲129 | 5.57 ▼0.15 | 89.59 ▼23.43 | 78.16 ▲33.19 |
Posts /wp-admin/edit.php | 2,227 ▲127 | 1.98 ▼0.03 | 35.80 ▼2.27 | 34.01 ▼3.36 |
Add New Post /wp-admin/post-new.php | 1,644 ▲118 | 23.22 ▲0.12 | 691.28 ▲8.53 | 57.79 ▼0.90 |
Media Library /wp-admin/upload.php | 1,521 ▲124 | 4.11 ▼0.12 | 101.20 ▼7.90 | 72.98 ▲27.48 |
Office Locator /wp-admin/admin.php?page=office-locator | 1,367 | 6.87 | 76.61 | 95.63 |
Add New /wp-admin/post-new.php?post_type=offices | 1,719 | 2.55 | 48.34 | 64.21 |
All Offices /wp-admin/edit.php?post_type=offices | 1,200 | 1.95 | 33.77 | 30.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- office_locator_general
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- office_locator_map
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: olcMapAttr in wp-content/plugins/office-locator/public/template-parts/layout/office-locator-layout-2.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/office-locator/public/template-parts/layout/office-locator-layout-7.php:9
- > PHP Notice
Undefined variable: olcMapAttr in wp-content/plugins/office-locator/public/template-parts/layout/office-locator-layout-4.php on line 3
- > PHP Notice
Undefined variable: olcMapAttr in wp-content/plugins/office-locator/public/template-parts/layout/office-locator-layout-8.php on line 3
- > PHP Notice
Undefined variable: olcMapAttr in wp-content/plugins/office-locator/public/template-parts/layout/office-locator-layout-6.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/office-locator/public/template-parts/layout/office-locator-layout-4.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/office-locator/public/template-parts/layout/office-locator-layout-5.php:9
- > PHP Notice
Undefined variable: olcMapAttr in wp-content/plugins/office-locator/public/template-parts/layout/office-locator-layout-7.php on line 3
- > PHP Notice
Undefined variable: olcMapAttr in wp-content/plugins/office-locator/public/template-parts/layout/office-locator-layout-5.php on line 3
- > PHP Notice
Undefined variable: olcMapAttr in wp-content/plugins/office-locator/public/template-parts/layout/office-locator-layout-3.php on line 3
- > PHP Notice
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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Requires php: Invalid version format
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
office-locator/office-locator.php 92% from 13 tests
The main file in "Office Locator" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 163 characters long)
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
Good job! No executable or dangerous file extensions detected7,486 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 823 | 1,093 | 3,403 |
CSS | 8 | 123 | 132 | 2,207 |
JSON | 6 | 0 | 0 | 956 |
JavaScript | 6 | 132 | 88 | 820 |
SVG | 4 | 18 | 0 | 100 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 56.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 347.00 |
Average method complexity | 8.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 2 | 2.13% |
▷ Public methods | 91 | 96.81% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.19% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
22 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/map-styles/Layout-3.png | 2.09KB | 0.98KB | ▼ 53.14% |
admin/images/map-styles/night.png | 1.08KB | 1.11KB | 0.00% |
admin/images/map-styles/dark.png | 1.07KB | 1.09KB | 0.00% |
admin/images/map-styles/Layout-4.png | 2.08KB | 0.98KB | ▼ 52.84% |
admin/images/user-marker/yellow.png | 0.94KB | 0.51KB | ▼ 45.57% |