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.19MB] [CPU: ▼27.52ms] Passed 4 tests
This is a short check of server-side resources used by DMOPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.46 | 30.48 ▼12.24 |
Dashboard /wp-admin | 3.85 ▲0.51 | 51.49 ▼13.16 |
Posts /wp-admin/edit.php | 3.91 ▲0.56 | 51.66 ▲0.92 |
Add New Post /wp-admin/post-new.php | 3.69 ▼2.20 | 39.08 ▼85.59 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 39.12 ▲3.31 |
Place Categories /wp-admin/edit-tags.php?taxonomy=categories&post_type=places | 3.71 | 38.24 |
Place Features /wp-admin/edit-tags.php?taxonomy=features&post_type=places | 3.71 | 39.19 |
Place Categories /wp-admin/edit-tags.php?taxonomy=categories | 3.71 | 37.29 |
Places /wp-admin/edit.php?post_type=places | 3.77 | 43.22 |
Add New Place /wp-admin/post-new.php?post_type=places | 3.69 | 40.61 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=places | 3.71 | 39.31 |
DMOPress /wp-admin/options-general.php?page=dmopress-settings | 3.66 | 34.81 |
Server storage [IO: ▲1.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 67 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_weather_inline |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
DMOPress: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲85 | 14.35 ▲0.19 | 2.36 ▲0.80 | 40.75 ▼0.75 |
Dashboard /wp-admin | 2,236 ▲59 | 5.51 ▼0.19 | 85.94 ▼19.35 | 36.60 ▼18.51 |
Posts /wp-admin/edit.php | 2,164 ▲64 | 1.97 ▲0.00 | 37.16 ▲0.93 | 33.84 ▼2.55 |
Add New Post /wp-admin/post-new.php | 1,569 ▲43 | 23.03 ▼0.31 | 641.85 ▼33.10 | 54.34 ▼4.56 |
Media Library /wp-admin/upload.php | 1,444 ▲44 | 4.20 ▲0.06 | 102.55 ▼5.11 | 44.26 ▼5.61 |
Place Categories /wp-admin/edit-tags.php?taxonomy=categories&post_type=places | 1,318 | 2.12 | 27.05 | 31.21 |
Place Features /wp-admin/edit-tags.php?taxonomy=features&post_type=places | 1,321 | 2.12 | 27.87 | 30.02 |
Place Categories /wp-admin/edit-tags.php?taxonomy=categories | 1,324 | 2.12 | 29.21 | 31.82 |
Places /wp-admin/edit.php?post_type=places | 1,167 | 2.10 | 30.67 | 32.45 |
Add New Place /wp-admin/post-new.php?post_type=places | 1,620 | 17.75 | 903.51 | 32.59 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=places | 1,366 | 2.12 | 27.64 | 29.49 |
DMOPress /wp-admin/options-general.php?page=dmopress-settings | 961 | 2.00 | 23.67 | 30.48 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_weather_inline
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=places
- > User notice in wp-includes/functions.php+5905
Function register_taxonomy was called incorrectly. The "categories" taxonomy "name" property (categories) conflicts with an existing property on the REST API Posts Controller. Specify a custom "rest_base" when registering the taxonomy to avoid this error. Please see Debugging in WordPress for more information. (This message was added in version 5.4.0.)
- 19 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dmopress-settings
- > Notice in wp-content/plugins/dmopress/setup/settings.php+185
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 17× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/dmopress/shortcodes/tripadvisor-reviews-button/tripadvisor-reviews-button.php
- > /wp-content/plugins/dmopress/setup/taxonomies.php
- > /wp-content/plugins/dmopress/shortcodes/tripadvisor-featured-button/tripadvisor-featured-button.php
- > /wp-content/plugins/dmopress/shortcodes/tripadvisor-rating-badge/tripadvisor-rating-badge.php
- > /wp-content/plugins/dmopress/shortcodes/tripadvisor-review-starter/tripadvisor-review-starter.php
- > /wp-content/plugins/dmopress/shortcodes/weather-current-inline/weather-current-inline.php
- > /wp-content/plugins/dmopress/integration/tribe-events-calendar/tribe-events-calendar.php
- > /wp-content/plugins/dmopress/setup/admin.php
- > /wp-content/plugins/dmopress/includes/classes/dmopress-template-loader.php
- > /wp-content/plugins/dmopress/functions/private.php
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function the_title() in wp-content/plugins/dmopress/templates/place-jsonld.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function dmo_get_address_full() in wp-content/plugins/dmopress/templates/place-tag.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dmopress/setup/hooks.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function tribe_get_linked_posts() in wp-content/plugins/dmopress/templates/tribe-eventdetail.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function dmo_get_address_full() in wp-content/plugins/dmopress/templates/place-feature.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function tribe_get_linked_posts() in wp-content/plugins/dmopress/templates/tribe-aftereventmeta.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function dmo_get_address_full() in wp-content/plugins/dmopress/templates/place-archive.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function dmo_get_website_url() in wp-content/plugins/dmopress/templates/place-detail.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dmopress/setup/public.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dmopress/shortcodes/twitter-timeline/twitter-timeline.php:57
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=places
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?key&ver=6.3.1 210:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: places, directory, dmo, tourism, maps
dmopress/dmopress.php Passed 13 tests
This is the main PHP file of "DMOPress" version 2.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
127 characters long description:
Built specifically for Destination Marketing Organizations, DMOPress helps you show, share and promote your places of interest.
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
There were no executable files found in this plugin6,703 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 1,021 | 43 | 2,893 |
PHP | 31 | 440 | 424 | 2,777 |
JSON | 7 | 0 | 0 | 571 |
SVG | 2 | 0 | 0 | 458 |
JavaScript | 2 | 0 | 0 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 86.96% |
▷ Protected methods | 3 | 13.04% |
▷ Private methods | 0 | 0.00% |
Functions | 75 | |
▷ Named functions | 73 | 97.33% |
▷ Anonymous functions | 2 | 2.67% |
Constants | 6 | |
▷ Global constants | 6 | 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
11 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 |
integration/visual-composer/icon-weather-inline.png | 2.07KB | 1.21KB | ▼ 41.60% |
shortcodes/map/img/location.png | 0.53KB | 0.49KB | ▼ 6.85% |
shortcodes/map/themes/gotham/marker.png | 4.63KB | 2.71KB | ▼ 41.52% |
shortcodes/map/themes/grayscale/marker.png | 4.31KB | 2.70KB | ▼ 37.40% |
integration/visual-composer/icon-map.png | 1.70KB | 0.96KB | ▼ 43.47% |