Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/showcase-idx/3/install.php+47
Undefined index: root_url
Server metrics [RAM: ▲0.11MB] [CPU: ▼1.59ms] Passed 4 tests
A check of server-side resources used by Showcase IDX Real Estate Search
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 43.39 ▲0.23 |
Dashboard /wp-admin | 3.50 ▲0.20 | 804.08 ▲753.11 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.53 ▼0.79 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.30 ▼9.18 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.03 ▲3.37 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 12 new options
New WordPress options |
---|
showcaseidx_deprovision_install_id |
widget_theysaidso_widget |
showcaseidx_product_version |
can_compress_scripts |
showcaseidx_install_id |
showcaseidx_website_uuid |
showcaseidx_search_page |
showcaseidx_website_name |
widget_recent-posts |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Showcase IDX Real Estate Search
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲196 | 14.14 ▼0.08 | 1.80 ▲0.01 | 33.26 ▼10.42 |
Dashboard /wp-admin | 2,337 ▲163 | 5.66 ▲0.03 | 88.99 ▼10.53 | 92.67 ▲45.05 |
Posts /wp-admin/edit.php | 2,164 ▲61 | 2.00 ▼0.00 | 35.56 ▲0.55 | 32.48 ▼5.69 |
Add New Post /wp-admin/post-new.php | 1,581 ▲55 | 22.72 ▼0.61 | 781.67 ▲96.13 | 53.94 ▼1.31 |
Media Library /wp-admin/upload.php | 1,458 ▲58 | 4.16 ▼0.05 | 97.09 ▼6.45 | 73.93 ▲31.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 12 options in the database
- widget_recent-comments
- showcaseidx_website_name
- db_upgraded
- showcaseidx_product_version
- showcaseidx_website_uuid
- widget_theysaidso_widget
- can_compress_scripts
- showcaseidx_deprovision_install_id
- showcaseidx_search_page
- theysaidso_admin_options
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/showcase-idx/2/admin.php:7
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/showcase-idx/2/showcaseidx.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/showcase-idx/3/shortcodes.php:3
- > PHP Warning
Use of undefined constant SHOWCASEIDX_ACCOUNT_STATUS_EXPIRED - assumed 'SHOWCASEIDX_ACCOUNT_STATUS_EXPIRED' (this will throw an Error in a future version of PHP) in wp-content/plugins/showcase-idx/3/page.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/showcase-idx/showcaseidx.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/showcase-idx/3/admin.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/showcase-idx/3/install.php:3
- > PHP Warning
Use of undefined constant SHOWCASEIDX_ACCOUNT_STATUS_REVOKED - assumed 'SHOWCASEIDX_ACCOUNT_STATUS_REVOKED' (this will throw an Error in a future version of PHP) in wp-content/plugins/showcase-idx/3/page.php on line 4
- > PHP Warning
Use of undefined constant SHOWCASEIDX_ACCOUNT_STATUS_INVALID - assumed 'SHOWCASEIDX_ACCOUNT_STATUS_INVALID' (this will throw an Error in a future version of PHP) in wp-content/plugins/showcase-idx/3/page.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/showcase-idx/3/resources.php:6
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: showcase idx, idx search, mls, real estate search, idx
showcase-idx/showcaseidx.php 92% from 13 tests
Analyzing the main PHP file in "Showcase IDX Real Estate Search" version 3.2.9
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("showcase-idx.php" instead of "showcaseidx.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,954 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 323 | 143 | 1,847 |
CSS | 1 | 18 | 8 | 107 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 1 | 16.67% |
▷ Public methods | 3 | 50.00% |
▷ Protected methods | 2 | 33.33% |
▷ Private methods | 1 | 16.67% |
Functions | 113 | |
▷ Named functions | 95 | 84.07% |
▷ Anonymous functions | 18 | 15.93% |
Constants | 19 | |
▷ Global constants | 19 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/menu.png | 1.62KB | 0.63KB | ▼ 61.23% |
images/showcaseidx_greenwhite_text_logo_trans.png | 12.24KB | 5.73KB | ▼ 53.23% |
images/showcaseidx_wp_admin_bar_logo_icon.png | 1.20KB | 1.20KB | 0.00% |
images/editor-screenshot.png | 23.00KB | 6.74KB | ▼ 70.68% |
images/logo.png | 3.49KB | 2.22KB | ▼ 36.41% |