Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.09MB] [CPU: ▼160.48ms] Passed 4 tests
Analyzing server-side resources used by ICE Chat WordPress Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 42.04 ▼3.21 |
Dashboard /wp-admin | 3.09 ▲0.03 | 43.78 ▼25.30 |
Posts /wp-admin/edit.php | 3.17 ▼0.42 | 53.61 ▼5.67 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 105.20 ▼598.25 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 40.62 ▼12.71 |
Chat Box /wp-admin/options-general.php?page=cbf | 3.07 | 48.78 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 1 new option
New WordPress options |
---|
cbf |
Browser metrics Passed 4 tests
An overview of browser requirements for ICE Chat WordPress Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,840 ▲236 | 16.54 ▲1.02 | 11.85 ▼0.40 | 56.55 ▼8.59 |
Dashboard /wp-admin | 2,988 ▲57 | 6.27 ▲0.29 | 161.45 ▼3.79 | 142.86 ▼18.03 |
Posts /wp-admin/edit.php | 2,757 ▲18 | 2.77 ▲0.05 | 75.18 ▼18.80 | 129.08 ▲5.78 |
Add New Post /wp-admin/post-new.php | 1,697 ▲116 | 18.61 ▲1.21 | 420.67 ▼85.92 | 133.01 ▼20.42 |
Media Library /wp-admin/upload.php | 1,825 ▲18 | 5.15 ▲0.12 | 167.08 ▼24.86 | 165.67 ▲18.93 |
Chat Box /wp-admin/options-general.php?page=cbf | 1,339 | 2.36 | 56.41 | 88.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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 items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ice-chat/public/partials/chat-box-public-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ice-chat/admin/partials/chat-box-admin-login.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ice-chat/admin/partials/chat-box-admin-registration.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
No tags were detected
ice-chat/chat-box.php 85% from 13 tests
Analyzing the main PHP file in "ICE Chat WordPress Plugin" version 1.0.0
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("ice-chat.php" instead of "chat-box.php")
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
Success! There were no dangerous files found in this plugin635 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 181 | 582 | 615 |
JavaScript | 3 | 4 | 61 | 19 |
CSS | 3 | 0 | 14 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 8.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.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 | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin