10% hots-logs-local-leaderboards

Code Review | Hots Logs - Leaderboards

WordPress plugin Hots Logs - Leaderboards scored10%from 54 tests.

About plugin

  • Plugin page: hots-logs-local-l...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Sep 30, 2015
  • Latest release: Oct 15, 2015
  • Number of updates: 21
  • Update frequency: every 0.7 days
  • Top authors: Vooders (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /985 total downloads

Benchmarks

Plugin footprint 58% 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
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/hots-logs-local-leaderboards/hots-logs.php+68
    Undefined variable: jal_db_version

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.11ms] Passed 4 tests

An overview of server-side resources used by Hots Logs - Leaderboards
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0838.99 ▼0.67
Dashboard /wp-admin3.38 ▲0.0444.71 ▼13.91
Posts /wp-admin/edit.php3.50 ▲0.1445.07 ▲1.18
Add New Post /wp-admin/post-new.php5.96 ▲0.0881.65 ▼15.04
Media Library /wp-admin/upload.php3.31 ▲0.0837.84 ▲6.72
Hots Logs /wp-admin/options-general.php?page=hots_logs3.2730.73

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: 1 new table, 10 new options
New tables
wp_hots_logs_plugin
New WordPress options
hots_logs_last_scrape
widget_recent-comments
widget_hots_logs_qm_leaderboard_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_hots_logs_hl_leaderboard_widget
widget_theysaidso_widget
theysaidso_admin_options
jal_db_version

Browser metrics Passed 4 tests

An overview of browser requirements for Hots Logs - Leaderboards
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.62 ▼0.731.74 ▼0.0742.48 ▲0.49
Dashboard /wp-admin2,213 ▲614.88 ▼0.80106.16 ▼1.9638.53 ▼4.44
Posts /wp-admin/edit.php2,093 ▲12.02 ▲0.0239.15 ▼1.3131.38 ▼10.52
Add New Post /wp-admin/post-new.php1,517 ▼1117.78 ▼0.68682.15 ▲5.6550.36 ▼7.98
Media Library /wp-admin/upload.php1,395 ▲104.36 ▲0.1498.74 ▼2.9642.72 ▲1.63
Hots Logs /wp-admin/options-general.php?page=hots_logs9292.0722.5532.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 9 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_hots_logs_qm_leaderboard_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • jal_db_version
    • widget_hots_logs_hl_leaderboard_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/hots-logs-local-leaderboards/widgets/qm-leaderboard.php
    • > /wp-content/plugins/hots-logs-local-leaderboards/hots-options.php
    • > /wp-content/plugins/hots-logs-local-leaderboards/hots-logs.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/hots-logs-local-leaderboards/widgets/hl-leaderboard.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === hots-logs-local-leaderboards === )
  • Donate link: Invalid URI ("")
The official readme.txt is a good inspiration

hots-logs-local-leaderboards/hots-logs.php 92% from 13 tests

The principal PHP file in "Hots Logs - Leaderboards" v. 1.3.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hots-logs-local-leaderboards.php" instead of "hots-logs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin552 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP67763533
XML30019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity9.50
▷ Minimum class complexity9.00
▷ Maximum class complexity10.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/1.png5.07KB2.34KB▼ 53.85%
images/2.png3.90KB2.39KB▼ 38.82%
images/3.png8.09KB2.52KB▼ 68.85%
images/0.png5.07KB2.33KB▼ 54.05%
images/4.png6.08KB2.60KB▼ 57.17%