84% steam-group-widget

Code Review | Steam Community Group Widget

WordPress plugin Steam Community Group Widget scored84%from 54 tests.

About plugin

  • Plugin page: steam-group-widget
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Mar 30, 2015
  • Latest release: Nov 19, 2015
  • Number of updates: 7
  • Update frequency: every 37.1 days
  • Top authors: otlet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,704 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼11.37ms] Passed 4 tests

Analyzing server-side resources used by Steam Community Group Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.28 ▼3.09
Dashboard /wp-admin3.32 ▼0.0242.82 ▼21.61
Posts /wp-admin/edit.php3.38 ▲0.0246.10 ▲0.04
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.56 ▼19.22
Media Library /wp-admin/upload.php3.25 ▲0.0233.68 ▼1.56

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_otletsg_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Steam Community Group Widget: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.25 ▼0.521.68 ▲0.0239.48 ▼2.71
Dashboard /wp-admin2,198 ▲215.61 ▲0.0384.66 ▼2.3036.65 ▼0.32
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0538.02 ▲1.1831.63 ▼0.53
Add New Post /wp-admin/post-new.php1,526 ▼323.19 ▼0.01612.41 ▼15.5153.26 ▼19.23
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0199.42 ▼0.1744.74 ▲3.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_otletsg_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/steam-group-widget/steam-group-widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === steam-group-widget === )
The official readme.txt is a good inspiration

steam-group-widget/steam-group-widget.php Passed 13 tests

"Steam Community Group Widget" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
30 characters long description:
Show your group like a widget!

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
Good job! No executable or dangerous file extensions detected104 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16878
Markdown110026

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin