10% alivestats-live-tracker

Code Review | The Ultimate Live Tracker

WordPress plugin The Ultimate Live Tracker scored 10% from 54 tests.

About plugin

  • Plugin page: alivestats-live-t...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 6.3.1
  • First release: Nov 23, 2015
  • Latest release: Feb 4, 2018
  • Number of updates: 6
  • Update frequency: every 144.8 days
  • Top authors: techniblogic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,812 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.364.45 ▼36.33
Dashboard /wp-admin2.11 ▼1.196.79 ▼45.07
Posts /wp-admin/edit.php2.12 ▼1.245.54 ▼38.10
Add New Post /wp-admin/post-new.php2.12 ▼3.776.52 ▼80.56
Media Library /wp-admin/upload.php2.12 ▼1.116.59 ▼31.53
The Ultimate Live Tracker /wp-admin/options-general.php?page=live-nimlinks2.125.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.27 ▼1.331.78 ▼0.0444.20 ▲0.12
Dashboard /wp-admin2,210 ▲225.85 ▼0.00112.96 ▼3.9541.79 ▼1.69
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0634.29 ▼3.0533.70 ▼1.45
Add New Post /wp-admin/post-new.php1,536 ▲1623.31 ▲0.03622.73 ▼60.5663.69 ▲12.12
Media Library /wp-admin/upload.php1,386 ▼54.19 ▼0.00100.76 ▼3.2943.73 ▼3.78
The Ultimate Live Tracker /wp-admin/options-general.php?page=live-nimlinks1,0201.7526.6970.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

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript113938833
PHP27517288

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 code0.20
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
logo.png6.62KB3.86KB▼ 41.69%
hv.png2.80KB7.32KB0.00%
hs.png2.62KB7.54KB0.00%
banner.PNG37.44KB8.13KB▼ 78.28%