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.03MB] [CPU: ▼2.23ms] Passed 4 tests
An overview of server-side resources used by Track Visitors
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 46.84 ▲5.86 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.63 ▼6.20 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 50.48 ▲0.48 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 88.38 ▼6.93 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.72 ▲3.73 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 9 new options
New WordPress options |
---|
wpvt_visitors_tracker |
widget_theysaidso_widget |
widget_recent-comments |
visitor_tracker_installed |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
visitor_tracker_version |
Browser metrics Passed 4 tests
Checking browser requirements for Track Visitors
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲160 | 13.61 ▼0.79 | 9.60 ▲7.65 | 46.60 ▲4.58 |
Dashboard /wp-admin | 2,203 ▲15 | 5.80 ▲0.91 | 94.15 ▼7.91 | 38.96 ▼2.50 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▲0.00 | 36.33 ▼0.47 | 30.83 ▼5.59 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 23.28 ▲5.57 | 669.01 ▼11.31 | 58.86 ▼3.13 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▼0.04 | 102.97 ▼7.31 | 41.42 ▼6.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- visitor_tracker_version
- visitor_tracker_installed
- db_upgraded
- wpvt_visitors_tracker
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/track-visitors/index.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: value in wp-content/plugins/track-visitors/assets/views/display.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/track-visitors/assets/views/display.php:11
- > PHP Notice
Undefined variable: value in wp-content/plugins/track-visitors/assets/views/display.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/track-visitors/assets/views/display.php on line 7
- > PHP Notice
Undefined variable: value in wp-content/plugins/track-visitors/assets/views/display.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/track-visitors/assets/views/display.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/track-visitors/assets/views/display.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: ip address, visitor tracker, visitor analysis, visitor, visitor ip tracker...
track-visitors/wp-visitors-tracker.php 85% from 13 tests
The main PHP script in "Track Visitors" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("track-visitors.php" instead of "wp-visitors-tracker.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin185 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 24 | 121 | 126 |
CSS | 1 | 8 | 0 | 46 |
JavaScript | 2 | 1 | 4 | 13 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 8 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 11.11% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 23.53KB | 8.79KB | ▼ 62.62% |