Benchmarks
Plugin footprint 82% 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: ▲1.02MB] [CPU: ▲0.33ms] 75% from 4 tests
Server-side resources used by WP Store Locator
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 608.76ms on /wp-admin/edit.php?post_type=wpsl_stores&page=wpsl_add_ons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.55 | 44.71 ▲6.11 |
Dashboard /wp-admin | 4.48 ▲1.18 | 52.12 ▲0.52 |
Posts /wp-admin/edit.php | 4.53 ▲1.18 | 57.56 ▲0.88 |
Add New Post /wp-admin/post-new.php | 7.21 ▲1.32 | 101.56 ▼6.17 |
Media Library /wp-admin/upload.php | 4.40 ▲1.17 | 47.27 ▲8.79 |
All Stores /wp-admin/edit.php?post_type=wpsl_stores | 4.48 | 47.50 |
New Store /wp-admin/post-new.php?post_type=wpsl_stores | 7.21 | 92.50 |
Store Categories /wp-admin/edit-tags.php?taxonomy=wpsl_store_category&post_type=wpsl_stores | 4.40 | 45.88 |
Settings /wp-admin/edit.php?post_type=wpsl_stores&page=wpsl_settings | 4.80 | 53.26 |
Add-Ons /wp-admin/edit.php?post_type=wpsl_stores&page=wpsl_add_ons | 4.41 | 608.76 |
Server storage [IO: ▲1.29MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 93 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wpsl_version |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
wpsl_settings |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP Store Locator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲148 | 14.37 ▼0.26 | 1.78 ▼0.07 | 44.83 ▲0.82 |
Dashboard /wp-admin | 2,307 ▲127 | 5.71 ▼0.00 | 96.95 ▲8.73 | 45.98 ▲5.83 |
Posts /wp-admin/edit.php | 2,215 ▲115 | 2.38 ▲0.36 | 49.96 ▲10.62 | 37.46 ▼6.98 |
Add New Post /wp-admin/post-new.php | 1,587 ▲61 | 23.28 ▲0.16 | 636.21 ▼40.17 | 49.16 ▼3.04 |
Media Library /wp-admin/upload.php | 1,512 ▲118 | 4.40 ▲0.10 | 107.82 ▲10.68 | 47.91 ▼1.60 |
All Stores /wp-admin/edit.php?post_type=wpsl_stores | 1,505 | 4.64 | 78.49 | 34.04 |
New Store /wp-admin/post-new.php?post_type=wpsl_stores | 11,327 | 27.60 | 965.05 | 153.59 |
Store Categories /wp-admin/edit-tags.php?taxonomy=wpsl_store_category&post_type=wpsl_stores | 1,395 | 2.00 | 41.15 | 36.55 |
Settings /wp-admin/edit.php?post_type=wpsl_stores&page=wpsl_settings | 8,874 | 7.53 | 142.11 | 149.46 |
Add-Ons /wp-admin/edit.php?post_type=wpsl_stores&page=wpsl_add_ons | 1,180 | 4.33 | 53.47 | 99.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-store-locator/frontend/templates/store-listings-below.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-store-locator/admin/data-export.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-store-locator/wp-store-locator.php:99
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-store-locator/frontend/templates/default.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-store-locator/admin/upgrade.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: A description for screenshot #5 is required in wp-store-locator/assets to your readme.txt
- Tags: You are using too many tags: 16 tag instead of maximum 10
wp-store-locator/wp-store-locator.php 92% from 13 tests
This is the main PHP file of "WP Store Locator" version 2.2.241, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin16,451 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 1,705 | 2,457 | 6,508 |
PO File | 3 | 1,939 | 2,363 | 4,721 |
JavaScript | 18 | 1,083 | 2,097 | 3,530 |
CSS | 9 | 327 | 46 | 1,635 |
XML | 1 | 0 | 0 | 29 |
SVG | 2 | 0 | 0 | 28 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 51.53 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 255.00 |
Average method complexity | 4.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 194 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 183 | 94.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 5.67% |
Functions | 51 | |
▷ Named functions | 51 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
19 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 |
img/markers/blue@2x.png | 1.83KB | 1.38KB | ▼ 25.01% |
img/markers/pink@2x.png | 2.08KB | 1.50KB | ▼ 28.00% |
img/markers/pink.png | 1.13KB | 0.94KB | ▼ 16.96% |
img/markers/dark-blue.png | 1.04KB | 0.86KB | ▼ 17.15% |
img/markers/dark-orange.png | 1.10KB | 0.94KB | ▼ 14.46% |