Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.43MB] [CPU: ▼38.76ms] Passed 4 tests
This is a short check of server-side resources used by Jheck Chat
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 27.96 ▼16.54 |
Dashboard /wp-admin | 3.59 ▲0.28 | 20.41 ▼35.85 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 23.21 ▼29.77 |
Add New Post /wp-admin/post-new.php | 3.59 ▼2.30 | 21.40 ▼71.82 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 21.49 ▼17.60 |
Server storage [IO: ▲3.73MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 252 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_jheck_chat_inbox |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
jheck_option |
theysaidso_admin_options |
db_upgraded |
jc_db_version |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Jheck Chat
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.70 ▲0.33 | 1.12 ▼1.18 | 81.17 ▲38.13 |
Dashboard /wp-admin | 2,210 ▲33 | 5.56 ▼0.12 | 86.10 ▼14.20 | 71.38 ▲27.58 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 1.98 ▼0.02 | 33.15 ▼7.02 | 30.43 ▼5.63 |
Add New Post /wp-admin/post-new.php | 1,703 ▲297 | 22.10 ▲4.20 | 687.58 ▲64.86 | 68.54 ▲16.54 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.20 ▼0.03 | 98.84 ▼8.06 | 86.08 ▲38.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/jheck-chat/vafpress/includes/wpalchemy/MetaBox.php+61
Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- jheck_option
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 120× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'VP_Control_Field' not found in wp-content/plugins/jheck-chat/vafpress/classes/control/field/codeeditor.php:3
- > PHP Fatal error
Uncaught Error: Class 'VP_Util_Res' not found in wp-content/plugins/jheck-chat/vafpress/views/control/template_control_foot.php:2
- > PHP Fatal error
Uncaught Error: Class 'VP_Security' not found in wp-content/plugins/jheck-chat/vafpress/data/sources.php:97
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/jheck-chat/vafpress/views/option/restore.php:4
- > PHP Warning
include(): Failed opening 'JC_URL_PATHinc/shortcodes/s_jcform.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/jheck-chat/inc/shortcodes.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'VP_Util_Text' not found in wp-content/plugins/jheck-chat/vafpress/views/control/html.php:5
- > PHP Notice
Undefined variable: type in wp-content/plugins/jheck-chat/vafpress/views/control/template_control_head.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'VP_Util_Text' not found in wp-content/plugins/jheck-chat/vafpress/views/control/notebox.php:6
- > PHP Notice
Undefined variable: is_compact in wp-content/plugins/jheck-chat/vafpress/views/control/notebox.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'VP_Control_FieldMultiImage' not found in wp-content/plugins/jheck-chat/vafpress/classes/control/field/radioimage.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (Chat box opened.)
jheck-chat/jheck-chat.php 85% from 13 tests
The main PHP file in "Jheck Chat" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: Please use dashes and lowercase characters for text domains
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin19,653 lines of code in 176 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 97 | 2,258 | 2,683 | 9,376 |
CSS | 23 | 161 | 195 | 6,013 |
JavaScript | 51 | 505 | 316 | 3,120 |
SVG | 2 | 0 | 0 | 1,054 |
Markdown | 2 | 31 | 0 | 89 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 21.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 271.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 4 | 7.02% |
▷ Concrete classes | 53 | 92.98% |
▷ Final classes | 0 | 0.00% |
Methods | 509 | |
▷ Static methods | 90 | 17.68% |
▷ Public methods | 476 | 93.52% |
▷ Protected methods | 19 | 3.73% |
▷ Private methods | 14 | 2.75% |
Functions | 43 | |
▷ Named functions | 43 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 42 | |
▷ Global constants | 39 | 92.86% |
▷ Class constants | 3 | 7.14% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
35 PNG files occupy 0.70MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vafpress/public/img/bootstrap-colorpicker/alpha.png | 3.19KB | 1.68KB | ▼ 47.45% |
vafpress/public/img/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
vafpress/public/css/vendor/jqueryui/themes/smoothness/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
vafpress/public/css/vendor/jqueryui/themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
template/template_3/preview.png | 28.96KB | 6.64KB | ▼ 77.06% |