Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/track-connect/includes/class-listings.php+128
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.47MB] [CPU: ▲10.44ms] Passed 4 tests
An overview of server-side resources used by TRACK Connect
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.48 | 54.69 ▲11.94 |
Dashboard /wp-admin | 3.81 ▲0.50 | 58.06 ▲10.96 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 59.35 ▲12.81 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 106.20 ▲6.04 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 49.75 ▲16.36 |
Locations /wp-admin/edit-tags.php?taxonomy=locations&post_type=listing | 3.66 | 45.44 |
Register Taxonomies /wp-admin/edit.php?post_type=listing&page=register-taxonomies | 3.66 | 40.73 |
Property Types /wp-admin/edit-tags.php?taxonomy=property-types&post_type=listing | 3.68 | 45.30 |
TRACK Connect /wp-admin/edit.php?post_type=listing | 3.72 | 46.35 |
Status /wp-admin/edit-tags.php?taxonomy=status&post_type=listing | 3.68 | 48.42 |
Features /wp-admin/edit-tags.php?taxonomy=features&post_type=listing | 3.66 | 44.37 |
Add New /wp-admin/post-new.php?post_type=listing | 3.87 | 63.38 |
Reorder Taxonomies /wp-admin/edit.php?post_type=listing&page=reorder-taxonomies | 3.64 | 44.39 |
Settings /wp-admin/edit.php?post_type=listing&page=wp-listings-settings | 3.67 | 42.89 |
Server storage [IO: ▲0.90MB] [DB: ▲0.01MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/track-connect/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/trackconnect/views/.empty
Filesystem: 85 new files
Database: 2 new tables, 13 new options
New tables |
---|
wp_track_node_types |
wp_track_amenities |
New WordPress options |
---|
plugin_wp_listings_settings |
status_children |
track_db_version |
widget_theysaidso_widget |
widget_listings-search |
property-types_children |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by TRACK Connect
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,065 ▲330 | 14.67 ▲0.21 | 16.84 ▲14.64 | 62.81 ▲11.98 |
Dashboard /wp-admin | 2,258 ▲70 | 5.85 ▲0.94 | 106.93 ▼3.55 | 42.44 ▼2.21 |
Posts /wp-admin/edit.php | 2,148 ▲59 | 2.11 ▲0.08 | 38.80 ▼1.51 | 38.08 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,591 ▲77 | 18.06 ▲0.61 | 604.86 ▼34.09 | 68.28 ▲11.95 |
Media Library /wp-admin/upload.php | 1,446 ▲55 | 4.27 ▲0.16 | 99.81 ▼5.06 | 42.94 ▼2.05 |
Locations /wp-admin/edit-tags.php?taxonomy=locations&post_type=listing | 1,321 | 2.29 | 28.60 | 29.07 |
Register Taxonomies /wp-admin/edit.php?post_type=listing&page=register-taxonomies | 1,013 | 1.84 | 24.07 | 34.88 |
Property Types /wp-admin/edit-tags.php?taxonomy=property-types&post_type=listing | 1,588 | 2.29 | 29.69 | 28.83 |
TRACK Connect /wp-admin/edit.php?post_type=listing | 1,117 | 2.04 | 32.46 | 27.67 |
Status /wp-admin/edit-tags.php?taxonomy=status&post_type=listing | 1,747 | 2.28 | 26.97 | 34.08 |
Features /wp-admin/edit-tags.php?taxonomy=features&post_type=listing | 1,296 | 2.34 | 27.04 | 26.67 |
Add New /wp-admin/post-new.php?post_type=listing | 3,257 | 7.88 | 175.62 | 71.72 |
Reorder Taxonomies /wp-admin/edit.php?post_type=listing&page=reorder-taxonomies | 842 | 1.84 | 27.92 | 24.10 |
Settings /wp-admin/edit.php?post_type=listing&page=wp-listings-settings | 1,021 | 1.90 | 28.70 | 38.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_track_amenities
- wp_track_node_types
- This plugin does not fully uninstall, leaving 13 options in the database
- wp_listings_taxonomies
- status_children
- widget_listings-search
- widget_wplistings-featured-listings
- theysaidso_admin_options
- plugin_wp_listings_settings
- property-types_children
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/edit.php?post_type=listing&page=register-taxonomies
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/edit.php?post_type=listing&page=register-taxonomies
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/post-new.php?post_type=listing
- > Notice in wp-content/plugins/track-connect/includes/views/listing-details-metabox.php+36
Undefined index: wp_listings_complex_node
- > GET request to /wp-admin/edit.php?post_type=listing&page=wp-listings-settings
- > Notice in wp-content/plugins/track-connect/includes/views/wp-listings-settings.php+88
Undefined index: wp_listings_force_sidebar
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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/track-connect/includes/views/override/archive-listing/style.php
- 32× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: options in wp-content/plugins/track-connect/includes/views/override/archive-listing/body.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/track-connect/includes/views/create-tax.php:1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/track-connect/includes/views/override/archive-listing/body.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_image_size() in wp-content/plugins/track-connect/includes/functions.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_stylesheet_directory() in wp-content/plugins/track-connect/includes/helpers.php:187
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/track-connect/includes/views/search-form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/track-connect/includes/views/wp-listings-settings.php:1
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/track-connect/includes/views/featured-listings-widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_template_directory() in wp-content/plugins/track-connect/plugin.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/track-connect/includes/views/listing-details-metabox.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: trackpm, track sync, track, track hs
track-connect/plugin.php 92% from 13 tests
The main PHP script in "TRACK Connect" version 4.0.5 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("track-connect.php" instead of "plugin.php")
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
Good job! No executable or dangerous file extensions detected10,559 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 947 | 491 | 3,981 |
JavaScript | 12 | 335 | 274 | 3,347 |
CSS | 14 | 347 | 315 | 2,212 |
Sass | 3 | 180 | 0 | 1,008 |
SVG | 1 | 0 | 1 | 9 |
JSON | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 192.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 1 | 1.54% |
▷ Public methods | 61 | 93.85% |
▷ Protected methods | 3 | 4.62% |
▷ Private methods | 1 | 1.54% |
Functions | 42 | |
▷ Named functions | 40 | 95.24% |
▷ Anonymous functions | 2 | 4.76% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) includes/images/grab.png | 0.10KB | 0.00KB | ▼ 100.00% |
includes/css/skins/minimal-white/rs-minimal-white.png | 5.33KB | 2.51KB | ▼ 52.97% |
includes/css/skins/universal/rs-universal.png | 5.50KB | 2.83KB | ▼ 48.52% |
includes/css/skins/default/rs-default.png | 3.09KB | 1.48KB | ▼ 52.03% |
includes/css/skins/default-inverted/rs-default-inverted.png | 2.76KB | 1.34KB | ▼ 51.47% |