Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.99ms] Passed 4 tests
A check of server-side resources used by WordPress IDX Plugin – VistaWP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 42.56 ▼0.93 |
Dashboard /wp-admin | 3.42 ▲0.12 | 49.63 ▼0.90 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.97 ▼2.07 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 82.81 ▼12.05 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 39.22 ▲7.25 |
License /wp-admin/admin.php?page=vista_license | 3.25 | 29.83 |
Vista /wp-admin/admin.php?page=vista_main | 3.30 | 33.32 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 55 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
vistawp_welcome_header_displayed |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress IDX Plugin – VistaWP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲84 | 14.08 ▼0.19 | 1.72 ▲0.01 | 37.33 ▼9.31 |
Dashboard /wp-admin | 2,221 ▲44 | 5.56 ▼0.07 | 94.35 ▼3.04 | 69.19 ▲23.33 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 1.98 ▼0.03 | 36.56 ▼7.47 | 32.46 ▼5.88 |
Add New Post /wp-admin/post-new.php | 1,702 ▲171 | 21.92 ▼0.82 | 801.82 ▲113.43 | 54.36 ▼2.17 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.04 ▼0.10 | 95.06 ▼7.17 | 77.71 ▲32.09 |
License /wp-admin/admin.php?page=vista_license | 874 | 1.99 | 24.91 | 37.07 |
Vista /wp-admin/admin.php?page=vista_main | 1,521 | 8.90 | 285.25 | 86.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/vistawp/templates/pages/main_page.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/vistawp/templates/fields/number-field.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/vistawp/templates/fields/text-field.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/vistawp/templates/fields/select.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/vistawp/templates/fields/checkbox.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=vista_main
- > Other (warning) in unknown
/wp-admin/admin.php?page=vista_main 156 Unrecognized feature: 'web-share'.
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Screenshots: Please describe screenshot #7 in vistawp/assets to your readme.txt
vistawp/vista.php 92% from 13 tests
"WordPress IDX Plugin – VistaWP" version 1.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("vistawp.php" instead of "vista.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
There were no executable files found in this plugin3,490 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 641 | 1,803 | 2,381 |
CSS | 6 | 141 | 42 | 967 |
JavaScript | 3 | 37 | 103 | 119 |
SVG | 1 | 0 | 1 | 23 |
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 issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 5 | 16.13% |
▷ Concrete classes | 26 | 83.87% |
▷ Final classes | 0 | 0.00% |
Methods | 147 | |
▷ Static methods | 8 | 5.44% |
▷ Public methods | 77 | 52.38% |
▷ Protected methods | 57 | 38.78% |
▷ Private methods | 13 | 8.84% |
Functions | 11 | |
▷ Named functions | 8 | 72.73% |
▷ Anonymous functions | 3 | 27.27% |
Constants | 53 | |
▷ Global constants | 4 | 7.55% |
▷ Class constants | 49 | 92.45% |
▷ Public constants | 12 | 24.49% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
img/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
img/dashboard_logo.png | 1.23KB | 0.95KB | ▼ 22.52% |
img/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
img/layers.png | 0.68KB | 1.05KB | 0.00% |