83% team-speak-widget

Code Review | Team Speek widget

WordPress plugin Team Speek widget scored83%from 54 tests.

About plugin

  • Plugin page: team-speak-widget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Mar 17, 2014
  • Latest release: Mar 17, 2014
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: dawid88 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /7,560 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.06ms] Passed 4 tests

A check of server-side resources used by Team Speek widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.48 ▲1.25
Dashboard /wp-admin3.31 ▼0.0343.72 ▼20.35
Posts /wp-admin/edit.php3.36 ▲0.0145.22 ▼2.29
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.08 ▼16.53
Media Library /wp-admin/upload.php3.24 ▲0.0135.02 ▼1.08

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_teamspeek_widget
widget_recent-comments

Browser metrics Passed 4 tests

Team Speek widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.361.69 ▼0.1742.37 ▲1.17
Dashboard /wp-admin2,206 ▲185.88 ▲0.97105.92 ▲6.7040.19 ▼1.16
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0540.61 ▲5.0836.59 ▼0.74
Add New Post /wp-admin/post-new.php1,517 ▼517.91 ▼4.98606.26 ▼55.6358.37 ▲0.24
Media Library /wp-admin/upload.php1,388 ▲64.18 ▼0.1895.15 ▼3.5545.03 ▲1.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_teamspeek_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/team-speak-widget/index.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === team-speak-widget === )
  • Donate link: Invalid URI found ("")
  • Screenshots: Screenshot #1 (This screen shot description corresponds to screenshot-1.png) image missing
You can look at the official readme.txt

team-speak-widget/index.php 92% from 13 tests

This is the main PHP file of "Team Speek widget" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("team-speak-widget.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin61 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1262361

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png20.62KB7.21KB▼ 65.02%
assets/ts_Button_106x66_01.png6.22KB3.20KB▼ 48.50%