79% techtunes-widget

Code Review | Techtunes Widget

WordPress plugin Techtunes Widget scored79%from 54 tests.

About plugin

  • Plugin page: techtunes-widget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.3.2
  • WordPress version: 6.3.1
  • First release: May 26, 2012
  • Latest release: May 26, 2012
  • Number of updates: 17
  • Update frequency: every 0.1 days
  • Top authors: ahrana (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,355 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.92MB] [CPU: ▼56.31ms] Passed 4 tests

A check of server-side resources used by Techtunes Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.49 ▼34.37
Dashboard /wp-admin2.09 ▼1.256.25 ▼53.36
Posts /wp-admin/edit.php2.09 ▼1.265.94 ▼42.73
Add New Post /wp-admin/post-new.php2.09 ▼3.796.07 ▼94.76
Media Library /wp-admin/upload.php2.09 ▼1.145.18 ▼32.29

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Techtunes 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 ▲6513.25 ▼1.551.82 ▲0.0338.68 ▼3.65
Dashboard /wp-admin2,206 ▲184.84 ▼1.06108.52 ▲1.3942.06 ▼4.01
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0339.40 ▼5.0537.82 ▲1.72
Add New Post /wp-admin/post-new.php1,514 ▼517.49 ▼5.74598.86 ▼81.6051.13 ▼8.36
Media Library /wp-admin/upload.php1,382 ▼64.19 ▼0.1296.20 ▼3.0740.35 ▼5.66

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
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5453
    Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Live view), #2 (Widget Admin Demo)
Please take inspiration from this readme.txt

techtunes-widget/Techtunes Widget.php 92% from 13 tests

The primary PHP file in "Techtunes Widget" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("techtunes-widget.php" instead of "Techtunes Widget.php")

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
No dangerous file extensions were detected126 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12839126

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png35.30KB14.36KB▼ 59.32%
screenshot-1.png84.13KB36.75KB▼ 56.32%