Benchmarks
Plugin footprint 65% 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.08MB] [CPU: ▼0.96ms] Passed 4 tests
Analyzing server-side resources used by Visitor Details
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.11 | 50.37 ▲11.47 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.42 ▼6.28 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.60 ▼2.82 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 95.49 ▲2.30 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.42 ▲2.97 |
Visitors Details /wp-admin/options-general.php?page=visitors-details | 3.26 | 33.05 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 31 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_visitordetails |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
wvd_db_version |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Visitor Details
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲159 | 13.95 ▼0.45 | 5.84 ▲4.06 | 38.67 ▼9.66 |
Dashboard /wp-admin | 2,214 ▲29 | 5.23 ▼0.62 | 112.53 ▼4.09 | 42.40 ▼3.47 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.34 ▲0.34 | 41.15 ▲1.89 | 34.42 ▼3.03 |
Add New Post /wp-admin/post-new.php | 1,524 ▲10 | 23.25 ▲5.63 | 643.67 ▼38.85 | 72.20 ▲17.24 |
Media Library /wp-admin/upload.php | 1,399 ▲17 | 4.45 ▲0.22 | 96.14 ▼0.56 | 42.10 ▼5.81 |
Visitors Details /wp-admin/options-general.php?page=visitors-details | 997 | 2.49 | 43.00 | 31.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_visitordetails
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- wvd_db_version
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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 fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/visitors-details/public/partials/wp-visitors-details-public-display.php
- > /wp-content/plugins/visitors-details/admin/partials/wp-visitors-details-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: user-detail, user-visit, ip-address, visitor-details, active-user
visitors-details/visitors-details.php 92% from 13 tests
The main PHP script in "Visitor Details" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 182 characters long)
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
Good job! No executable or dangerous file extensions detected590 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 159 | 527 | 418 |
JavaScript | 3 | 2 | 31 | 170 |
CSS | 4 | 0 | 8 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 4.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 7 | 25.00% |
▷ Public methods | 22 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 21.43% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
admin/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
admin/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
admin/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
admin/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |