90% wp-twitch-status

Code Review | WP Twitch Status

WordPress plugin WP Twitch Status scored90%from 54 tests.

About plugin

  • Plugin page: wp-twitch-status
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7.2
  • WordPress version: 6.3.1
  • First release: Jan 29, 2017
  • Latest release: Jan 29, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: nicolamustone (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /921 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.11ms] Passed 4 tests

This is a short check of server-side resources used by WP Twitch Status
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.34 ▼3.79
Dashboard /wp-admin3.36 ▲0.0250.83 ▼13.42
Posts /wp-admin/edit.php3.41 ▲0.0652.81 ▲2.30
Add New Post /wp-admin/post-new.php5.94 ▲0.0695.41 ▲2.46
Media Library /wp-admin/upload.php3.29 ▲0.0640.03 ▲3.18

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_wp_twitch_status
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Twitch Status
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.17 ▼1.202.03 ▼0.0841.92 ▲0.39
Dashboard /wp-admin2,221 ▲154.85 ▼0.14110.84 ▼8.5341.23 ▼0.75
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0240.34 ▲0.8634.94 ▼0.86
Add New Post /wp-admin/post-new.php1,545 ▲1923.24 ▲5.64665.39 ▲32.0652.28 ▼4.40
Media Library /wp-admin/upload.php1,394 ▼94.23 ▲0.06125.22 ▲20.7649.55 ▲2.97

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_wp_twitch_status
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: api, twitch, status, category, gaming...

wp-twitch-status/wp-twitch-status.php Passed 13 tests

The primary PHP file in "WP Twitch Status" version 1.0.0 is used by WordPress to initiate all plugin functionality
70 characters long description:
A Twitch integration for WP that shows the status of a Twitch channel.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin166 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24776166

PHP code Passed 2 tests

A brief analysis 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 code0.26
Average class complexity12.50
▷ Minimum class complexity12.00
▷ Maximum class complexity13.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected