Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.54MB] [CPU: ▼50.72ms] Passed 4 tests
Analyzing server-side resources used by Smart Visitor Tracker
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.45 ▼1.01 | 12.56 ▼29.44 |
Dashboard /wp-admin | 2.46 ▼0.84 | 13.04 ▼44.12 |
Posts /wp-admin/edit.php | 2.46 ▼0.89 | 11.68 ▼40.93 |
Add New Post /wp-admin/post-new.php | 2.46 ▼3.42 | 12.50 ▼88.40 |
Media Library /wp-admin/upload.php | 2.46 ▼0.77 | 13.44 ▼24.67 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_vdcustom_data |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Smart Visitor Tracker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲115 | 13.51 ▼0.84 | 8.29 ▲6.45 | 42.51 ▼1.52 |
Dashboard /wp-admin | 2,213 ▲36 | 5.56 ▼0.09 | 92.69 ▼1.06 | 37.64 ▼4.66 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.02 ▼0.00 | 39.69 ▼1.27 | 34.77 ▼6.52 |
Add New Post /wp-admin/post-new.php | 1,543 ▲14 | 23.02 ▲0.07 | 624.49 ▼33.35 | 61.87 ▲6.33 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.11 ▼0.05 | 101.56 ▼1.50 | 42.96 ▼0.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/smart-visitor-tracker/class-visitor-popup.php+75
session_start(): A session had already been started - ignoring
- The uninstall procedure failed, leaving 1 table in the database
- wp_vdcustom_data
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/smart-visitor-tracker/visitor-admin-data.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/smart-visitor-tracker/visitor-admin-data.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-visitor-tracker/class-visitor-popup.php:5
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: smart, visitor, tracker
smart-visitor-tracker/smart-visitor-tracker.php Passed 13 tests
The main PHP file in "Smart Visitor Tracker" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
74 characters long description:
Smart Visitor Tracker Plugin to keep and track visitor IP details in deep.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected412 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 47 | 41 | 306 |
CSS | 1 | 8 | 2 | 56 |
JavaScript | 1 | 5 | 4 | 50 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin