Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼140.29ms] Passed 4 tests
Analyzing server-side resources used by Virtual Real Estate Agent
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 36.28 ▲12.95 |
Dashboard /wp-admin | 3.15 ▲0.09 | 45.90 ▼1.38 |
Posts /wp-admin/edit.php | 3.26 ▲0.15 | 43.31 ▼1.40 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.07 | 88.70 ▼562.03 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 35.13 ▲3.66 |
Settings /wp-admin/admin.php?page=va-chatplugin-menu-settings | 3.06 | 30.16 |
Overview /wp-admin/admin.php?page=va-chatplugin-menu | 3.08 | 32.03 |
Server storage [IO: ▲5.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 45 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Virtual Real Estate Agent
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,714 ▲118 | 16.03 ▲0.59 | 7.38 ▼2.72 | 47.43 ▲0.55 |
Dashboard /wp-admin | 3,006 ▲76 | 6.06 ▲0.08 | 141.92 ▼9.60 | 113.51 ▼4.53 |
Posts /wp-admin/edit.php | 2,772 ▲33 | 2.71 ▲0.02 | 73.39 ▲4.43 | 97.87 ▲4.34 |
Add New Post /wp-admin/post-new.php | 1,521 ▼162 | 18.90 ▲0.35 | 371.56 ▼0.46 | 109.36 ▼2.15 |
Media Library /wp-admin/upload.php | 1,840 ▲33 | 5.00 ▼0.03 | 147.47 ▼4.05 | 126.68 ▲12.41 |
Settings /wp-admin/admin.php?page=va-chatplugin-menu-settings | 1,154 | 2.33 | 56.11 | 88.79 |
Overview /wp-admin/admin.php?page=va-chatplugin-menu | 1,274 | 2.30 | 59.14 | 103.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/virtual-real-estate-agent/public/partials/settings-page-public-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/virtual-real-estate-agent/admin/partials/virtual-real-estate-agent-admin-overview.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/virtual-real-estate-agent/admin/partials/virtual-real-estate-agent-admin-settings.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (The screenshots of the settings can be found inside the `/virtual-real-estate-agent/assets` directory.)
virtual-real-estate-agent/virtual-real-estate-agent.php Passed 13 tests
The entry point to "Virtual Real Estate Agent" version 1.1.6 is a PHP file that has certain tags in its header comment area
131 characters long description:
This is the initial wordpress plugin to serve chat plugin inside the iFrame and display this chat plugin on the wordpress websites.
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
No dangerous file extensions were detected894 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 159 | 570 | 451 |
CSS | 2 | 11 | 8 | 319 |
PO File | 1 | 26 | 3 | 67 |
Markdown | 2 | 18 | 0 | 34 |
JavaScript | 2 | 7 | 54 | 22 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
16 PNG files occupy 5.15MB with 3.97MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/de/5.png | 337.09KB | 76.14KB | ▼ 77.41% |
assets/images/en/1.png | 368.17KB | 87.76KB | ▼ 76.16% |
assets/images/en/6.png | 340.17KB | 77.13KB | ▼ 77.33% |
assets/images/en/2.png | 374.25KB | 88.08KB | ▼ 76.46% |
assets/images/en/8.png | 343.43KB | 75.95KB | ▼ 77.88% |