Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/alivestats-live-tracker/index.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; LiveTracker has a deprecated constructor
Server metrics [RAM: ▼1.89MB] [CPU: ▼50.02ms] Passed 4 tests
An overview of server-side resources used by The Ultimate Live Tracker
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.36 | 4.45 ▼36.33 |
Dashboard /wp-admin | 2.11 ▼1.19 | 6.79 ▼45.07 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 5.54 ▼38.10 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 6.52 ▼80.56 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 6.59 ▼31.53 |
The Ultimate Live Tracker /wp-admin/options-general.php?page=live-nimlinks | 2.12 | 5.27 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 17 new options
New WordPress options |
---|
widget_recent-posts |
live_BorderColor |
live_TextColor |
live_OnlineSize |
live_Width |
live_BackgroundColor |
live_Line |
live_Recent |
live_BorderRadius |
db_upgraded |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for The Ultimate Live Tracker
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.27 ▼1.33 | 1.78 ▼0.04 | 44.20 ▲0.12 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▼0.00 | 112.96 ▼3.95 | 41.79 ▼1.69 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.06 | 34.29 ▼3.05 | 33.70 ▼1.45 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.31 ▲0.03 | 622.73 ▼60.56 | 63.69 ▲12.12 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.19 ▼0.00 | 100.76 ▼3.29 | 43.73 ▼3.78 |
The Ultimate Live Tracker /wp-admin/options-general.php?page=live-nimlinks | 1,020 | 1.75 | 26.69 | 70.77 |
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
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/alivestats-live-tracker/index.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; LiveTracker has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_simple_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=live-nimlinks
- > Deprecated in wp-content/plugins/alivestats-live-tracker/index.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; LiveTracker has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=live-nimlinks
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in LiveTracker is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=live-nimlinks
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=live-nimlinks
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/alivestats-live-tracker/index.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=live-nimlinks
- > Network (severe)
https://alivestats.com/widget/widget_bg.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/options-general.php?page=live-nimlinks
- > Network (severe)
http://alivestats.com/beta/stats/dark-logo.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: the ultimate live tracker, browsing users, traffic widget, traffic, live...
alivestats-live-tracker/index.php 92% from 13 tests
The main PHP script in "The Ultimate Live Tracker" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("alivestats-live-tracker.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,121 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 139 | 38 | 833 |
PHP | 2 | 75 | 17 | 288 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo.png | 6.62KB | 3.86KB | ▼ 41.69% |
hv.png | 2.80KB | 7.32KB | 0.00% |
hs.png | 2.62KB | 7.54KB | 0.00% |
banner.PNG | 37.44KB | 8.13KB | ▼ 78.28% |