Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.12ms] Passed 4 tests
A check of server-side resources used by Chirpbox Chat
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.44 ▼2.40 |
Dashboard /wp-admin | 3.37 ▲0.06 | 51.74 ▲2.83 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 45.75 ▲1.22 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 84.84 ▼6.13 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.81 ▲7.03 |
Chirpbox Chat /wp-admin/options-general.php?page=chirpbox-chat | 3.25 | 28.62 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Chirpbox Chat
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲181 | 13.57 ▼0.70 | 8.17 ▲5.98 | 42.31 ▼8.51 |
Dashboard /wp-admin | 2,211 ▲23 | 5.79 ▲0.90 | 100.01 ▼15.69 | 41.84 ▼7.46 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.02 ▼0.04 | 35.90 ▼0.01 | 32.68 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,521 ▲2 | 23.10 ▼0.10 | 647.55 ▼62.48 | 51.15 ▼6.46 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.20 ▼0.18 | 97.68 ▼8.51 | 42.45 ▼5.16 |
Chirpbox Chat /wp-admin/options-general.php?page=chirpbox-chat | 800 | 2.06 | 24.23 | 29.85 |
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
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=chirpbox-chat
- > Notice in wp-content/plugins/chirpbox-chat/admin/partials/chirpbox-chat-admin-display.php+27
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/chirpbox-chat/public/partials/chirpbox-chat-public-display.php
- 1× 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/chirpbox-chat/admin/partials/chirpbox-chat-admin-display.php:19
- > 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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== chirpbox-chat ===
)
chirpbox-chat/chirpbox-chat.php Passed 13 tests
The main PHP script in "Chirpbox Chat" version 1.2.2 is automatically included on every request by WordPress
64 characters long description:
Powerful and easy to use chat widget for any website - Chirpbox.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected228 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 141 | 559 | 222 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 1.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected