Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.18MB] [CPU: ▼11.35ms] Passed 4 tests
Server-side resources used by TextP2P Texting Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 26.31 ▼13.97 |
Dashboard /wp-admin | 3.52 ▲0.22 | 46.85 ▼8.23 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 43.17 ▼3.94 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 83.23 ▼19.24 |
Media Library /wp-admin/upload.php | 3.44 ▲0.22 | 42.62 ▲5.30 |
TextP2P /wp-admin/options-general.php?page=im-textp2p | 3.51 | 33.96 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
imtextp2p_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
TextP2P Texting Widget: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲197 | 13.95 ▼0.28 | 6.35 ▲4.73 | 39.66 ▼0.09 |
Dashboard /wp-admin | 2,248 ▲62 | 5.23 ▲0.30 | 103.63 ▼26.49 | 76.25 ▲33.62 |
Posts /wp-admin/edit.php | 2,145 ▲56 | 2.35 ▲0.34 | 35.05 ▲0.77 | 36.97 ▲4.35 |
Add New Post /wp-admin/post-new.php | 1,721 ▲186 | 22.57 ▼0.95 | 641.63 ▼51.45 | 30.71 ▼23.01 |
Media Library /wp-admin/upload.php | 1,438 ▲50 | 4.51 ▲0.22 | 87.36 ▼12.92 | 82.71 ▲38.94 |
TextP2P /wp-admin/options-general.php?page=im-textp2p | 3,066 | 3.57 | 94.34 | 29.51 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- imtextp2p_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/textp2p-texting-widget/inc/admin/tabs/im-textp2p-general-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/textp2p-texting-widget/inc/admin/tabs/im-textp2p-gcaptcha-settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/textp2p-texting-widget/inc/im-textp2p-functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/textp2p-texting-widget/inc/admin/tabs/im-textp2p-chat-settings.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (14 tag instead of maximum 10)
- Screenshots: Add an image for screenshot #1 (Chat Box Title Style Settings.)
textp2p-texting-widget/textp2p-texting-widget.php 92% from 13 tests
The primary PHP file in "TextP2P Texting Widget" version 1.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin2,914 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 256 | 82 | 1,466 |
CSS | 3 | 186 | 20 | 1,205 |
JavaScript | 2 | 51 | 7 | 242 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 29 | 96.67% |
▷ Anonymous functions | 1 | 3.33% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.62MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/imlogo.png | 15.78KB | 6.92KB | ▼ 56.13% |
assets/images/chat_icons/textp2p.png | 46.79KB | 19.09KB | ▼ 59.20% |
assets/images/pattern.png | 252.88KB | 147.09KB | ▼ 41.84% |
assets/images/chat_icons/close_icon.png | 235.65KB | 82.82KB | ▼ 64.86% |
assets/images/chat_icons/user_icon.png | 36.60KB | 11.54KB | ▼ 68.48% |