Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼1.92MB] [CPU: ▼63.79ms] Passed 4 tests
This is a short check of server-side resources used by Steam Library GT
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.01 ▼45.82 |
Dashboard /wp-admin | 2.10 ▼1.24 | 8.47 ▼60.94 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 7.61 ▼50.06 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 7.03 ▼98.34 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 7.65 ▼34.11 |
Steam Library GT /wp-admin/options-general.php?page=steam_library-setting-admin | 2.10 | 8.63 |
Server storage [IO: ▲2.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Steam Library GT
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲144 | 13.44 ▼0.90 | 11.60 ▲9.68 | 41.91 ▼0.39 |
Dashboard /wp-admin | 2,203 ▲29 | 5.68 ▲0.13 | 88.60 ▼3.45 | 43.34 ▲4.28 |
Posts /wp-admin/edit.php | 2,108 ▲11 | 2.02 ▼0.00 | 39.39 ▼0.17 | 34.10 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,533 ▼4 | 23.11 ▲5.07 | 658.73 ▼24.94 | 62.18 ▼9.62 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.19 ▲0.00 | 93.71 ▼14.10 | 43.27 ▼4.73 |
Steam Library GT /wp-admin/options-general.php?page=steam_library-setting-admin | 844 | 2.00 | 22.44 | 29.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the steam.css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=steam_library-setting-admin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the steam.css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=steam_library-setting-admin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the font-awesome.min.css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=steam_library-setting-admin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=steam_library-setting-admin
- > 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=steam_library-setting-admin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/steam-library-gt/ajax/game_details.php
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
simplexml_load_file(): http://thegamesdb.net/api/GetGame.php?name=:3: parser error : parsing XML declaration: '?>' expected in wp-content/plugins/steam-library-gt/ajax/game_details.php on line 5
- > PHP Notice
Undefined index: name in wp-content/plugins/steam-library-gt/ajax/game_details.php on line 3
- > PHP Warning
simplexml_load_file(): ^ in wp-content/plugins/steam-library-gt/ajax/game_details.php on line 5
- > PHP Warning
simplexml_load_file(): update your programs in wp-content/plugins/steam-library-gt/ajax/game_details.php on line 5
- > PHP Warning
simplexml_load_file(): update your programs in wp-content/plugins/steam-library-gt/ajax/game_details.php on line 5
- > PHP Warning
simplexml_load_file(): update your programs in wp-content/plugins/steam-library-gt/ajax/game_details.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/steam-library-gt/classes/SteamLibraryGTSettingsPage.php:142
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/steam-library-gt/classes/SteamLibraryGTSettingsPage.php:142
- > PHP Warning
simplexml_load_file(): ^ in wp-content/plugins/steam-library-gt/ajax/game_details.php on line 5
- > PHP Warning
simplexml_load_file(): ^ in wp-content/plugins/steam-library-gt/ajax/game_details.php on line 5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Requires at least: The plugin version is formatted incorrectly
steam-library-gt/steam_library_gt.php 92% from 13 tests
The main file in "Steam Library GT" v. 1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("steam-library-gt.php" instead of "steam_library_gt.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,249 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 23 | 12 | 1,604 |
Sass | 13 | 19 | 22 | 928 |
LESS | 12 | 18 | 27 | 907 |
SVG | 1 | 0 | 0 | 414 |
PHP | 5 | 56 | 75 | 202 |
JavaScript | 1 | 35 | 4 | 150 |
Markdown | 1 | 22 | 0 | 44 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for 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.14 |
Average class complexity | 4.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 1.81MB with 1.21MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 810.62KB | 218.75KB | ▼ 73.01% |
assets/screenshot-2.png | 977.32KB | 292.53KB | ▼ 70.07% |
assets/screenshot-1.png | 64.74KB | 27.35KB | ▼ 57.75% |