Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.38ms] Passed 4 tests
A check of server-side resources used by Visitors Info
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.35 ▼6.79 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.62 ▼7.50 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.17 ▼2.17 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.16 ▼5.06 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.15 ▲2.57 |
Settings /wp-admin/admin.php?page=vi_settings | 3.26 | 32.03 |
Visitors Info /wp-admin/admin.php?page=vi_visitors | 3.26 | 32.74 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_visitors_info |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
vi_settings |
widget_recent-posts |
recovery_mode_email_last_sent |
theysaidso_admin_options |
widget_theysaidso_widget |
vi_db_table_version |
Browser metrics Passed 4 tests
Visitors Info: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲178 | 13.61 ▼0.68 | 2.36 ▲0.53 | 38.63 ▼1.79 |
Dashboard /wp-admin | 2,232 ▲44 | 4.91 ▲0.03 | 106.91 ▲0.90 | 74.20 ▲29.58 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.02 ▲0.04 | 38.03 ▼4.30 | 34.16 ▼1.46 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 22.89 ▲4.79 | 730.55 ▲132.08 | 53.48 ▼0.64 |
Media Library /wp-admin/upload.php | 1,414 ▲23 | 4.22 ▲0.01 | 96.16 ▲0.66 | 80.60 ▲37.85 |
Settings /wp-admin/admin.php?page=vi_settings | 1,549 | 2.03 | 24.18 | 28.56 |
Visitors Info /wp-admin/admin.php?page=vi_visitors | 783 | 1.14 | 8.24 | 21.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- vi_db_table_version
- vi_settings
- recovery_mode_email_last_sent
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=vi_visitors
- > Error in wp-content/plugins/visitors-info/visitors.php+47
Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/visitors-info/visitors.php:47
Stack trace:
#0 wp-content/plugins/visitors-info/visitors.php(58): get_table_data()
#1 wp-content/plugins/visitors-info/visitors-info.php(142): include('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): vi_visitors()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 {main}
thrown
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
Please take a closer look at the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/visitors-info/visitors-info.php:13
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/visitors-info/visitors.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/visitors-info/settings.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/visitors-info/popup.php:3
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/visitors-info/visitors.php on line 3
- > 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 on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid url: ""
- Tags: No valid plugin tags found
- Screenshots: These screenshots do not have images: #1 (Frontend View), #2 (Admin Settings Page), #3 (Admin Visitors View)
visitors-info/visitors-info.php 92% from 13 tests
This is the main PHP file of "Visitors Info" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 176 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin625 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 86 | 31 | 410 |
CSS | 1 | 11 | 0 | 146 |
JavaScript | 1 | 0 | 4 | 38 |
Markdown | 1 | 18 | 0 | 31 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/visitors-icon-36.png | 3.96KB | 1.44KB | ▼ 63.54% |
images/visitors-icon.png | 3.35KB | 0.79KB | ▼ 76.57% |