10% loltracker

Code Review | LoL Tracker

WordPress plugin LoL Tracker scored10%from 54 tests.

About plugin

  • Plugin page: loltracker
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 27, 2015
  • Latest release: Mar 28, 2015
  • Number of updates: 7
  • Update frequency: every 0.6 days
  • Top authors: vvasiloud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,438 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/loltracker/includes/class-lol-tracker.php+334
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼61.80ms] Passed 4 tests

This is a short check of server-side resources used by LoL Tracker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.435.32 ▼39.30
Dashboard /wp-admin2.05 ▼1.265.19 ▼53.92
Posts /wp-admin/edit.php2.05 ▼1.316.19 ▼55.46
Add New Post /wp-admin/post-new.php2.05 ▼3.844.71 ▼98.53
Media Library /wp-admin/upload.php2.05 ▼1.185.85 ▼33.78

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for LoL Tracker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲17013.70 ▼0.5210.38 ▲7.8838.20 ▼10.20
Dashboard /wp-admin2,222 ▲345.85 ▼0.05107.29 ▼2.6185.43 ▲37.34
Posts /wp-admin/edit.php2,111 ▲182.02 ▲0.0341.19 ▼5.8036.16 ▼3.85
Add New Post /wp-admin/post-new.php1,546 ▲1318.11 ▼4.98635.05 ▼106.9567.89 ▲9.05
Media Library /wp-admin/upload.php1,410 ▲224.22 ▲0.11104.38 ▼9.4346.22 ▼5.87

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
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/loltracker/includes/class-lol-tracker.php+334
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_lol_tracker_fwc_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/loltracker/public/partials/lol-tracker-public-display.php
    • > /wp-content/plugins/loltracker/admin/partials/lol-tracker-admin-display.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loltracker/admin/class-lol-tracker-admin.php:122
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/loltracker/includes/class-lol-tracker.php:286

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 86% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Donate link: Invalid url: "-"
Please take inspiration from this readme.txt

loltracker/lol-tracker.php 77% from 13 tests

"LoL Tracker" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("loltracker.php" instead of "lol-tracker.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 158 characters long)

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
Success! There were no dangerous files found in this plugin365 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity1.75
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.19
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
▷ Static methods26.25%
▷ Public methods2578.12%
▷ Protected methods00.00%
▷ Private methods721.88%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin