Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.96MB] [CPU: ▲13.84ms] Passed 4 tests
An overview of server-side resources used by Visitors Online by BestWebSoft
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.45 ▲0.99 | 51.02 ▲16.51 |
Dashboard /wp-admin | 4.30 ▲0.99 | 59.43 ▲7.33 |
Posts /wp-admin/edit.php | 4.35 ▲0.99 | 61.48 ▲17.46 |
Add New Post /wp-admin/post-new.php | 6.84 ▲0.95 | 103.21 ▲16.37 |
Media Library /wp-admin/upload.php | 4.16 ▲0.93 | 47.76 ▲15.14 |
Server storage [IO: ▲4.76MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 128 new files
Database: 4 new tables, 9 new options
New tables |
---|
wp_vstrsnln_general |
wp_bws_list_countries |
wp_vstrsnln_detailing |
wp_bws_list_ip |
New WordPress options |
---|
can_compress_scripts |
bstwbsftwppdtplgns_options |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
vstrsnln_options |
widget_vstrsnln_widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Visitors Online by BestWebSoft
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲175 | 14.17 ▼0.11 | 1.77 ▲0.25 | 43.50 ▲1.97 |
Dashboard /wp-admin | 2,336 ▲156 | 5.64 ▼0.04 | 93.75 ▲6.58 | 45.98 ▲4.44 |
Posts /wp-admin/edit.php | 2,204 ▲104 | 2.22 ▲0.21 | 38.99 ▲2.29 | 37.24 ▲2.64 |
Add New Post /wp-admin/post-new.php | 1,630 ▲104 | 18.20 ▼4.48 | 588.57 ▼60.44 | 76.58 ▲28.67 |
Media Library /wp-admin/upload.php | 1,494 ▲91 | 4.20 ▲0.03 | 96.84 ▼2.19 | 43.28 ▲1.04 |
BWS Panel /wp-admin/visitors-online.php?page=vstrsnln-bws-panel | 26 | 0.42 | 0.08 | 13.05 |
Settings /wp-admin/visitors-online.php | 26 | 0.42 | 0.08 | 5.57 |
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 does not fully uninstall, leaving 1 table in the database
- wp_bws_list_countries
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visitors-online/bws_menu/class-bws-settings.php:1452
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/visitors-online/bws_menu/product_list.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/visitors-online/visitors-online.php:925
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/visitors-online/includes/class-vstrsnln-settings.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/visitors-online.php?page=vstrsnln-bws-panel
- > Network (severe)
wp-admin/visitors-online.php?page=vstrsnln-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/visitors-online.php
- > Network (severe)
wp-admin/visitors-online.php - Failed to load resource: the server responded with a status of 404 (Not 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:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (Displaying Visitors Online in the Sidebar on your WordPress website.), #2 (Displaying Visitors Online on the Dashboard.), #3 (Plugin Settings page.)
visitors-online/visitors-online.php Passed 13 tests
The main file in "Visitors Online by BestWebSoft" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
88 characters long description:
Display live count of online visitors who are currently browsing your WordPress website.
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
No dangerous file extensions were detected20,369 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 13 | 3,777 | 5,508 | 8,427 |
PHP | 10 | 526 | 649 | 5,631 |
CSS | 10 | 189 | 275 | 5,551 |
JavaScript | 8 | 27 | 112 | 610 |
SVG | 4 | 0 | 0 | 150 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 61.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 9.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 21.43% |
Functions | 81 | |
▷ Named functions | 81 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
62 PNG files occupy 3.09MB with 1.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.31KB | 0.18KB | ▼ 39.81% |
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
bws_menu/css/jquery-ui-styles/1.12.1/images/ui-icons_888888_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |