Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼10.18ms] Passed 4 tests
Analyzing server-side resources used by Visitors Tracker by tech-c.net
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.59 ▲1.13 | 33.42 ▼7.30 |
Dashboard /wp-admin | 3.35 ▲0.05 | 51.21 ▼5.59 |
Posts /wp-admin/edit.php | 4.95 ▲1.60 | 41.22 ▼21.61 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 101.72 ▼6.23 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.12 ▼1.30 |
Visitors Tracker by tech-c.net /wp-admin/options-general.php?page=tc_visitors_tracker_options_slug | 3.49 | 35.66 |
Server storage [IO: ▲6.90MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 351 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_tc_visitors_tracker |
New WordPress options |
---|
tc_visitors_tracker_db_version |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Visitors Tracker by tech-c.net
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.23 ▼0.06 | 2.28 ▲0.45 | 43.47 ▲6.73 |
Dashboard /wp-admin | 2,202 ▲25 | 5.61 ▼0.06 | 92.15 ▲2.02 | 40.48 ▼3.65 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.01 ▼0.09 | 39.22 ▲0.84 | 35.20 ▼0.34 |
Add New Post /wp-admin/post-new.php | 1,529 ▲2 | 22.92 ▼0.22 | 648.40 ▼50.31 | 55.45 ▼3.46 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.15 ▼0.04 | 100.90 ▼13.76 | 45.53 ▼1.38 |
Visitors Tracker by tech-c.net /wp-admin/options-general.php?page=tc_visitors_tracker_options_slug | 2,335 | 2.22 | 40.75 | 37.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- tc_visitors_tracker_db_version
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% 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/options-general.php?page=tc_visitors_tracker_options_slug
- > Notice in wp-content/plugins/tc-visitors-tracker/pageviews.php+51
Undefined index: view
- > GET request to /wp-admin/options-general.php?page=tc_visitors_tracker_options_slug
- > Notice in wp-content/plugins/tc-visitors-tracker/pageviews.php+352
Undefined index: start
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 7× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/tc-visitors-tracker/about.php
- > /wp-content/plugins/tc-visitors-tracker/pageviews.php
- > /wp-content/plugins/tc-visitors-tracker/tc-visitors-tracker.php
- > /wp-content/plugins/tc-visitors-tracker/update-geoip.php
- > /wp-content/plugins/tc-visitors-tracker/settings.php
- > /wp-content/plugins/tc-visitors-tracker/viewtime.php
- > /wp-content/plugins/tc-visitors-tracker/database.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tc_visitors_tracker_options_slug
- > Network (severe)
wp-content/plugins/tc-visitors-tracker/images/country/-.png - Failed to load resource: the server responded with a status of 404 (Not Found)
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
4 plugin tags: visitors, views, time, statistic
tc-visitors-tracker/tc-visitors-tracker.php Passed 13 tests
This is the main PHP file of "Visitors Tracker by tech-c.net" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
43 characters long description:
This plugin logs visitors of your homepage.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
These items require your attention
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bin - Binary Executable in Windows, macOS, Linux
- ☣ wp-content/plugins/tc-visitors-tracker/IP2Location/IP2LOCATION-LITE-DB1.BIN
- ☣ wp-content/plugins/tc-visitors-tracker/IP2Location/IP2LOCATION-LITE-DB1.IPV6.BIN
- .bin - Binary Executable in Windows, macOS, Linux
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 661 | 929 | 5,121 |
CSS | 2 | 68 | 48 | 1,432 |
PO File | 2 | 156 | 156 | 476 |
JavaScript | 1 | 11 | 8 | 73 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 457)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 345.00 |
▷ Minimum class complexity | 155.00 |
▷ Maximum class complexity | 535.00 |
Average method complexity | 16.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 457.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 9 | 20.45% |
▷ Public methods | 14 | 31.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 30 | 68.18% |
Functions | 18 | |
▷ Named functions | 16 | 88.89% |
▷ Anonymous functions | 2 | 11.11% |
Constants | 48 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 48 | 100.00% |
▷ Public constants | 48 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
328 compressed PNG files occupy 0.25MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/country/co.png | 0.53KB | 0.84KB | 0.00% |
images/country/so.png | 0.42KB | 0.66KB | 0.00% |
images/country/ie.png | 0.54KB | 0.62KB | 0.00% |
images/country/rw.png | 0.66KB | 0.89KB | 0.00% |
images/country/bf.png | 0.69KB | 0.86KB | 0.00% |