Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/steam-news-widget/includes/ssg-steam-news-widget-internal.php+240
Function create_function() is deprecated
Server metrics [RAM: ▼1.83MB] [CPU: ▼221.79ms] Passed 4 tests
An overview of server-side resources used by Steam News Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.81 ▼0.92 | 5.87 ▼15.18 |
Dashboard /wp-admin | 1.82 ▼1.24 | 5.94 ▼30.47 |
Posts /wp-admin/edit.php | 1.82 ▼1.29 | 6.48 ▼34.23 |
Add New Post /wp-admin/post-new.php | 1.82 ▼3.61 | 5.48 ▼788.08 |
Media Library /wp-admin/upload.php | 1.82 ▼1.19 | 5.74 ▼34.38 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_ssg-steam-news |
Browser metrics Passed 4 tests
Steam News Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.90 ▲0.27 | 9.63 ▼0.36 | 46.05 ▲2.34 |
Dashboard /wp-admin | 2,973 ▲42 | 5.93 ▼0.02 | 137.79 ▼7.18 | 111.50 ▲0.33 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 59.86 ▼6.20 | 84.42 ▼8.94 |
Add New Post /wp-admin/post-new.php | 1,685 ▲13 | 19.12 ▲0.34 | 375.72 ▲2.04 | 109.11 ▼6.97 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.03 ▼0.01 | 147.44 ▼11.25 | 118.31 ▼4.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/steam-news-widget/includes/ssg-steam-news-widget-internal.php+240
Function create_function() is deprecated
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 19× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/steam-news-widget/includes/ssg-steam-news-widget-internal.php
- > /wp-content/plugins/steam-news-widget/includes/swt-wp-plugin-options-view.php
- > /wp-content/plugins/steam-news-widget/includes/swt-steam-news-generator-base.php
- > /wp-content/plugins/steam-news-widget/includes/swt-wp-gui-control.php
- > /wp-content/plugins/steam-news-widget/includes/swt-wp-gui-control-editbox.php
- > /wp-content/plugins/steam-news-widget/includes/swt-wp-cron.php
- > /wp-content/plugins/steam-news-widget/includes/swt-wp-steam-news-fetcher.php
- > /wp-content/plugins/steam-news-widget/includes/swt-template-processor.php
- > /wp-content/plugins/steam-news-widget/includes/swt-string-ops.php
- > /wp-content/plugins/steam-news-widget/includes/swt-html-generator.php
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 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
7 plugin tags: steam, widget, game news, news, steampowered...
steam-news-widget/ssg-steam-news-widget.php 92% from 13 tests
"Steam News Widget" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("steam-news-widget.php" instead of "ssg-steam-news-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin999 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 320 | 15 | 999 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 4.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 3 | 12.00% |
▷ Concrete classes | 22 | 88.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 5 | 6.33% |
▷ Public methods | 43 | 54.43% |
▷ Protected methods | 21 | 26.58% |
▷ Private methods | 15 | 18.99% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 51 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 51 | 100.00% |
▷ Public constants | 51 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin