Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.58ms] Passed 4 tests
An overview of server-side resources used by Chat2
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.06 ▼2.70 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.25 ▼7.85 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 51.89 ▼1.47 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 95.33 ▲11.75 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.83 ▼2.28 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
chat-field-settings-var-content |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Chat2: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲87 | 14.85 ▲0.70 | 30.90 ▲29.27 | 41.32 ▲1.08 |
Dashboard /wp-admin | 2,206 ▲38 | 5.56 ▼0.14 | 92.21 ▼14.75 | 66.25 ▲20.27 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 1.96 ▼0.01 | 40.02 ▼4.61 | 35.61 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.17 ▼0.39 | 659.84 ▲20.47 | 169.17 ▲118.24 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.22 ▲0.02 | 99.06 ▼8.65 | 74.52 ▲29.91 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/chat2/admin/deactivate.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 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
2 plugin tags: chat2, live chat
chat2/chat2.php Passed 13 tests
The main PHP file in "Chat2" ver. 3.6.2 adds more information about the plugin and also serves as the entry point for this plugin
59 characters long description:
This plugin adds Chat2 live chat to your wordpress website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin243 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 71 | 40 | 188 |
SVG | 1 | 0 | 1 | 55 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/32uldpi.png | 3.66KB | 0.90KB | ▼ 75.31% |
assets/icon-256x256.png | 5.14KB | 3.01KB | ▼ 41.43% |
assets/icon-128x128.png | 2.48KB | 1.51KB | ▼ 39.20% |