Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/smartbroker/xml_helpers.php+122
array_key_exists() expects parameter 2 to be array, null given
Server metrics [RAM: ▲0.24MB] [CPU: ▼6.54ms] Passed 4 tests
A check of server-side resources used by SmartBroker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.22 | 28.08 ▼11.93 |
Dashboard /wp-admin | 3.56 ▲0.25 | 49.52 ▲3.11 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 46.18 ▼5.59 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 94.36 ▼10.21 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 36.16 ▲1.59 |
SmartBroker /wp-admin/options-general.php?page=smartbroker | 3.42 | 32.66 |
Server storage [IO: ▲1.60MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please try to fix the following items
- There were 2 files (0.13KB) illegally modified outside of "wp-content/plugins/smartbroker/" and "wp-content/uploads/"
- (new file) sb_sitemap.xml
- (new file) robots.txt
Filesystem: 42 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
sb_plugin_options |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
sb_sitemap_last_refresh |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SmartBroker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲173 | 13.80 ▼0.65 | 14.04 ▲12.26 | 43.33 ▲2.98 |
Dashboard /wp-admin | 2,207 ▲19 | 4.85 ▼0.02 | 96.57 ▼13.71 | 41.34 ▼9.18 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.07 ▼0.11 | 36.78 ▼5.01 | 31.54 ▼4.17 |
Add New Post /wp-admin/post-new.php | 1,517 ▼7 | 17.57 ▼5.44 | 615.07 ▼52.18 | 55.66 ▼0.87 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.21 ▲0.01 | 95.27 ▼3.39 | 40.97 ▼2.78 |
SmartBroker /wp-admin/options-general.php?page=smartbroker | 944 | 2.21 | 23.83 | 31.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- sb_plugin_options
- can_compress_scripts
- widget_recent-posts
- sb_sitemap_last_refresh
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=smartbroker
- > Notice in wp-content/plugins/smartbroker/config.php+65
Undefined index: zero_value
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 fix the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/smartbroker/find_out_more.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_sidebar_widget() in wp-content/plugins/smartbroker/sb_widgets.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_sidebar_widget() in wp-content/plugins/smartbroker/sb_widgets.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smartbroker/create_sitemap.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (The search box and results page), #2 (A sample boat listing with broker's notes, specifications, photos, videos and contact form), #3 (The featured boats shortcode), #4 (Adding the SmartBroker search widget to a sidebar (with default size and price values)), #5 (A sample homepage showing the featured boats shortcode as well as the search widget), #6 (SmartBroker Server v6: Editing a listing)
smartbroker/smartbroker.php Passed 13 tests
The primary PHP file in "SmartBroker" version 6.3.0.4 is used by WordPress to initiate all plugin functionality
57 characters long description:
A plugin to insert SmartBroker data into a Wordpress site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,958 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 227 | 179 | 1,338 |
JavaScript | 5 | 69 | 31 | 414 |
CSS | 2 | 59 | 17 | 206 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 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 | 1 | |
▷ Global constants | 1 | 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
8 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/video-overlay.png | 2.42KB | 1.59KB | ▼ 34.21% |
images/logo.png | 19.26KB | 5.76KB | ▼ 70.11% |
images/icon-prev.png | 15.26KB | 5.09KB | ▼ 66.61% |
images/icon-close.png | 16.21KB | 7.33KB | ▼ 54.75% |
images/vr-overlay.png | 7.61KB | 3.51KB | ▼ 53.88% |