Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼264.63ms] Passed 4 tests
A check of server-side resources used by Chat Room
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 27.08 ▲6.06 |
Dashboard /wp-admin | 3.12 ▲0.07 | 42.54 ▲9.33 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 39.05 ▼2.15 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 92.01 ▼1,049.04 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 28.05 ▼13.37 |
Add New /wp-admin/post-new.php?post_type=chat-room | 3.11 | 34.34 |
All Chat Rooms /wp-admin/edit.php?post_type=chat-room | 3.11 | 33.71 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Chat Room
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,712 ▲106 | 16.20 ▲0.31 | 8.26 ▼0.73 | 51.61 ▲0.73 |
Dashboard /wp-admin | 2,955 ▲99 | 5.90 ▲0.05 | 171.95 ▲29.26 | 110.31 ▲6.52 |
Posts /wp-admin/edit.php | 2,741 ▲38 | 2.70 ▲0.01 | 68.92 ▲1.45 | 97.37 ▲1.77 |
Add New Post /wp-admin/post-new.php | 1,676 ▲23 | 18.80 ▲0.03 | 389.11 ▲14.12 | 124.63 ▲11.39 |
Media Library /wp-admin/upload.php | 1,807 ▲35 | 5.02 ▼0.02 | 143.51 ▼10.55 | 114.19 ▼17.46 |
Add New /wp-admin/post-new.php?post_type=chat-room | 1,890 | 3.26 | 95.25 | 80.31 |
All Chat Rooms /wp-admin/edit.php?post_type=chat-room | 1,408 | 2.63 | 71.02 | 65.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/chat-room/chat-room.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== chat-room ===
) - Screenshots: These screenshots have no corresponding images in /assets: #1 (An example of a chat room in use within the Twenty Eleven theme.), #2 (The chat rooms are easily modifiable in the admin interface.), #3 (Chat rooms only require a title.)
chat-room/chat-room.php Passed 13 tests
The main file in "Chat Room" v. 0.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
23 characters long description:
Chat Room for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected248 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 22 | 20 | 179 |
JavaScript | 1 | 4 | 0 | 62 |
CSS | 1 | 1 | 9 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 64.17KB | 23.18KB | ▼ 63.88% |
screenshot-1.png | 96.42KB | 40.31KB | ▼ 58.19% |
screenshot-2.png | 71.11KB | 26.94KB | ▼ 62.12% |