Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.47ms] Passed 4 tests
An overview of server-side resources used by Counter live visitors for WooComerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 26.87 ▼14.91 |
Dashboard /wp-admin | 3.40 ▲0.09 | 44.88 ▼2.50 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.31 ▲1.97 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 91.56 ▲1.55 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.86 ▲3.82 |
Visitor Counter /wp-admin/admin.php?page=wcvisitor-options | 3.39 | 34.77 |
Server storage [IO: ▲3.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
_WCVisitor_folder_name |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Counter live visitors for WooComerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,487 ▼284 | 13.27 ▲0.03 | 0.46 ▼4.39 | 17.09 ▼31.26 |
Dashboard /wp-admin | 2,228 ▲40 | 4.81 ▼0.05 | 111.50 ▲7.02 | 44.06 ▲1.44 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.05 ▲0.02 | 40.96 ▲1.31 | 36.53 ▲2.68 |
Add New Post /wp-admin/post-new.php | 1,555 ▲33 | 23.39 ▲0.03 | 679.03 ▲29.39 | 58.71 ▼0.09 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.24 ▲0.06 | 99.47 ▼9.23 | 46.49 ▼1.35 |
Visitor Counter /wp-admin/admin.php?page=wcvisitor-options | 1,127 | 2.02 | 24.68 | 33.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- _WCVisitor_folder_name
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: realtime, counter, visitor counter, counter visitor, users counter...
counter-visitor-for-woocommerce/woo-counter-visitor.php 85% from 13 tests
"Counter live visitors for WooComerce" version 1.3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.3" instead of "3.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("counter-visitor-for-woocommerce.php" instead of "woo-counter-visitor.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected10,237 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,299 |
PHP | 3 | 86 | 41 | 615 |
PO File | 1 | 60 | 68 | 174 |
Markdown | 1 | 44 | 0 | 82 |
JavaScript | 1 | 8 | 0 | 47 |
CSS | 2 | 1 | 4 | 20 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 75.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 24.14% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wordpress-org/banner-772x250.png | 26.57KB | 10.71KB | ▼ 59.68% |
wordpress-org/banner-1544x500.png | 69.30KB | 27.82KB | ▼ 59.85% |
wordpress-org/icon-128x128.png | 1.71KB | 0.67KB | ▼ 60.95% |
wordpress-org/banner-1880x609.png | 46.95KB | 21.54KB | ▼ 54.13% |