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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.18MB] [CPU: ▼7.71ms] Passed 4 tests
A check of server-side resources used by Premium Chat
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 64.44 ▲19.64 |
Dashboard /wp-admin | 3.39 ▲0.08 | 44.79 ▼4.22 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.71 ▲5.92 |
Add New Post /wp-admin/post-new.php | 4.90 ▼0.99 | 52.40 ▼38.46 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.01 ▲5.92 |
Premium.Chat /wp-admin/index.php?page=prmct_configurator | 3.27 | 29.87 |
Server storage [IO: ▲1.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_premium_chat_widget |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Premium Chat
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.74 ▲0.44 | 2.67 ▲0.43 | 47.88 ▲3.75 |
Dashboard /wp-admin | 2,207 ▲16 | 5.80 ▼0.09 | 93.37 ▼20.01 | 37.25 ▼11.38 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▼0.05 | 39.08 ▲0.95 | 35.90 ▲1.08 |
Add New Post /wp-admin/post-new.php | 6,586 ▲5,044 | 29.32 ▲6.01 | 853.36 ▲179.73 | 51.99 ▼1.53 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.18 ▼0.00 | 94.90 ▼8.02 | 41.37 ▼1.57 |
Premium.Chat /wp-admin/index.php?page=prmct_configurator | 879 | 1.14 | 7.60 | 51.50 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_premium_chat_widget
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 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 everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #0, #0 in premium-chat/assets to your readme.txt
premium-chat/prmct.php 85% from 13 tests
The entry point to "Premium Chat" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("premium-chat.php" instead of "prmct.php")
- Description: Keep the plugin description shorter than 140 characters (currently 164 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin600 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 132 | 321 | 400 |
CSS | 3 | 0 | 7 | 82 |
JavaScript | 1 | 8 | 7 | 51 |
Markdown | 1 | 18 | 0 | 38 |
SVG | 2 | 0 | 0 | 29 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 26 | 89.66% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 10.34% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.75MB with 0.53MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshots/screenshot1.png | 251.13KB | 78.21KB | ▼ 68.86% |
assets/screenshots/screenshot2.png | 296.01KB | 108.55KB | ▼ 63.33% |
assets/images/home-widget.png | 215.86KB | 42.11KB | ▼ 80.49% |