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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 38.99 ▼0.67 |
Dashboard /wp-admin | 3.38 ▲0.04 | 44.71 ▼13.91 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 45.07 ▲1.18 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 81.65 ▼15.04 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.84 ▲6.72 |
Hots Logs /wp-admin/options-general.php?page=hots_logs | 3.27 | 30.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.62 ▼0.73 | 1.74 ▼0.07 | 42.48 ▲0.49 |
Dashboard /wp-admin | 2,213 ▲61 | 4.88 ▼0.80 | 106.16 ▼1.96 | 38.53 ▼4.44 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▲0.02 | 39.15 ▼1.31 | 31.38 ▼10.52 |
Add New Post /wp-admin/post-new.php | 1,517 ▼11 | 17.78 ▼0.68 | 682.15 ▲5.65 | 50.36 ▼7.98 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.36 ▲0.14 | 98.74 ▼2.96 | 42.72 ▲1.63 |
Hots Logs /wp-admin/options-general.php?page=hots_logs | 929 | 2.07 | 22.55 | 32.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
- > PHP Fatal error
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 ("")
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 77 | 63 | 533 |
XML | 3 | 0 | 0 | 19 |
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 code | 0.25 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 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
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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/1.png | 5.07KB | 2.34KB | ▼ 53.85% |
images/2.png | 3.90KB | 2.39KB | ▼ 38.82% |
images/3.png | 8.09KB | 2.52KB | ▼ 68.85% |
images/0.png | 5.07KB | 2.33KB | ▼ 54.05% |
images/4.png | 6.08KB | 2.60KB | ▼ 57.17% |