Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼151.27ms] Passed 4 tests
Server-side resources used by PlacePress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.14 ▲0.29 | 25.34 ▲4.43 |
Dashboard /wp-admin | 3.43 ▲0.36 | 32.76 ▼3.68 |
Posts /wp-admin/edit.php | 3.49 ▲0.38 | 33.12 ▲2.39 |
Add New Post /wp-admin/post-new.php | 5.84 ▲0.40 | 52.46 ▼605.48 |
Media Library /wp-admin/upload.php | 3.31 ▲0.30 | 25.89 ▲1.71 |
Add New /wp-admin/post-new.php?post_type=locations | 5.84 | 46.35 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=tours | 3.31 | 24.09 |
Add New /wp-admin/post-new.php?post_type=tours | 5.84 | 45.79 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=locations | 3.31 | 23.68 |
All Tours /wp-admin/edit.php?post_type=tours | 3.37 | 26.64 |
PlacePress /wp-admin/options-general.php?page=placepress | 3.29 | 21.08 |
Location Types /wp-admin/edit-tags.php?taxonomy=location_types&post_type=locations | 3.31 | 24.22 |
Tour Types /wp-admin/edit-tags.php?taxonomy=tour_types&post_type=tours | 3.31 | 23.87 |
All Locations /wp-admin/edit.php?post_type=locations | 3.37 | 29.31 |
Server storage [IO: ▲1.09MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 17 new options
New WordPress options |
---|
default_longitude |
default_latitude |
mapbox_key |
maki_markers |
maki_markers_color |
tours_caption_display |
tours_floating_map_display |
widget_placepress_widget |
default_map_type |
enable_locations |
... |
Browser metrics Passed 4 tests
PlacePress: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,785 ▲184 | 16.04 ▼0.01 | 4.92 ▼0.41 | 75.60 ▲0.31 |
Dashboard /wp-admin | 3,039 ▲140 | 6.06 ▼0.06 | 121.63 ▼8.40 | 174.60 ▲6.54 |
Posts /wp-admin/edit.php | 2,836 ▲96 | 3.24 ▲0.01 | 64.99 ▲2.44 | 150.67 ▲18.86 |
Add New Post /wp-admin/post-new.php | 3,896 ▲155 | 19.28 ▲0.45 | 442.09 ▲7.71 | 172.45 ▼7.94 |
Media Library /wp-admin/upload.php | 1,847 ▲101 | 5.52 ▼0.02 | 140.89 ▼18.63 | 180.35 ▼1.70 |
Add New /wp-admin/post-new.php?post_type=locations | 5,828 | 21.54 | 459.79 | 171.24 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=tours | 1,943 | 2.78 | 56.14 | 126.67 |
Add New /wp-admin/post-new.php?post_type=tours | 5,836 | 16.08 | 369.69 | 172.80 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=locations | 1,937 | 2.77 | 59.73 | 123.94 |
All Tours /wp-admin/edit.php?post_type=tours | 1,554 | 3.45 | 80.53 | 110.87 |
PlacePress /wp-admin/options-general.php?page=placepress | 1,763 | 3.42 | 87.80 | 187.90 |
Location Types /wp-admin/edit-tags.php?taxonomy=location_types&post_type=locations | 1,850 | 2.77 | 58.12 | 124.51 |
Tour Types /wp-admin/edit-tags.php?taxonomy=tour_types&post_type=tours | 1,856 | 2.78 | 55.98 | 122.37 |
All Locations /wp-admin/edit.php?post_type=locations | 1,554 | 3.45 | 75.73 | 112.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 17 options
- mapbox_satellite
- default_longitude
- maki_markers
- default_zoom
- enable_location_archive_map
- marker_clustering
- enable_tours
- tours_floating_map_display
- default_map_type
- enable_locations
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=tours
- > User deprecated in wp-includes/functions.php+5586
block_categories is deprecated since version 5.8.0! Use block_categories_all instead.
SRP Passed 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
The SRP test was a success
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=tours
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156+1:40463
Block validation: Expected attribute `%s` of value `%s`, saw `%s`." "style" "height:100px" "height:5px
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=tours
- > Console-api (severe) in wp-includes/js/dist/blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156+1:40463
Block validation: Block validation failed for `%s` (%o).\n\nContent generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s" "core/spacer" Object "\u003Cdiv style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\">\u003C/div>" "\u003Cdiv style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\">\u003C/div>
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
placepress/placepress.php 85% from 13 tests
This is the main PHP file of "PlacePress" version 1.3.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
Everything looks great! No dangerous files found in this plugin20,691 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 15,773 |
JavaScript | 12 | 196 | 133 | 2,868 |
PHP | 16 | 166 | 242 | 1,246 |
Sass | 9 | 62 | 6 | 726 |
CSS | 3 | 0 | 0 | 61 |
Markdown | 1 | 8 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 51 | |
▷ Named functions | 51 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 21.36KB | 6.76KB | ▼ 68.35% |
assets/icon-256x256.png | 53.07KB | 15.38KB | ▼ 71.03% |