Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.05ms] Passed 4 tests
A check of server-side resources used by Chatster
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.15 ▼7.43 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.50 ▼1.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.68 ▼1.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.65 ▼6.12 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.88 ▼0.72 |
Server storage [IO: ▲2.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 114 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Chatster
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.54 ▼0.19 | 1.98 ▲0.27 | 44.94 ▲2.29 |
Dashboard /wp-admin | 2,192 ▲15 | 5.55 ▼0.04 | 87.92 ▼15.20 | 43.34 ▼0.70 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.05 | 38.37 ▼3.01 | 33.30 ▼4.35 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.93 ▼0.55 | 625.19 ▼33.77 | 51.63 ▲0.08 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.06 | 94.96 ▼3.65 | 43.06 ▼0.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant CHATSTER_PATH - assumed 'CHATSTER_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/chatster/includes/core/class.chat-form-serializer.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'CHATSTER_PATH/includes/functions.global.php' (include_path='.:/usr/share/php') in wp-content/plugins/chatster/includes/core/class.chat-form-serializer.php on line 4
- > PHP Warning
require_once(CHATSTER_PATH/includes/functions.global.php): failed to open stream: No such file or directory in wp-content/plugins/chatster/includes/core/class.chat-form-serializer.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #10, #11, #12, #13, #14, #2, #3, #4, #5, #6, #7, #8, #9 in chatster/assets to your readme.txt
chatster/chatster.php Passed 13 tests
The entry point to "Chatster" version 1.0.1 is a PHP file that has certain tags in its header comment area
65 characters long description:
Customizable real time chat with messaging system and BOT helper.
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
Everything looks great! No dangerous files found in this plugin17,837 lines of code in 90 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 1,002 | 182 | 4,013 |
JavaScript | 10 | 826 | 390 | 3,871 |
CSS | 10 | 254 | 65 | 3,756 |
SVG | 1 | 0 | 0 | 2,671 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 16.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 4 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 229 | |
▷ Static methods | 43 | 18.78% |
▷ Public methods | 156 | 68.12% |
▷ Protected methods | 59 | 25.76% |
▷ Private methods | 14 | 6.11% |
Functions | 43 | |
▷ Named functions | 12 | 27.91% |
▷ Anonymous functions | 31 | 72.09% |
Constants | 15 | |
▷ Global constants | 11 | 73.33% |
▷ Class constants | 4 | 26.67% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/red-pin.png | 2.43KB | 1.66KB | ▼ 31.48% |
assets/img/header-img.png | 70.69KB | 19.57KB | ▼ 72.31% |