84% widget-itunes-feed

Code Review | Widget iTunes Feed

WordPress plugin Widget iTunes Feed scored84%from 54 tests.

About plugin

  • Plugin page: widget-itunes-feed
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 11, 2020
  • Latest release: Feb 17, 2022
  • Number of updates: 8
  • Update frequency: every 89.5 days
  • Top authors: meohen1989 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /764 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
Installer ran successfully

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

Server-side resources used by Widget iTunes Feed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.99 ▼2.65
Dashboard /wp-admin3.32 ▲0.0249.40 ▼2.72
Posts /wp-admin/edit.php3.37 ▲0.0149.57 ▼3.57
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.54 ▼19.58
Media Library /wp-admin/upload.php3.24 ▲0.0139.53 ▲2.49

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Widget iTunes Feed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,955 ▲19413.53 ▼0.868.99 ▲7.4138.49 ▼5.28
Dashboard /wp-admin2,220 ▲175.80 ▼0.02114.21 ▲7.3741.35 ▼5.42
Posts /wp-admin/edit.php2,102 ▲22.01 ▼0.0236.34 ▼2.7134.49 ▼0.13
Add New Post /wp-admin/post-new.php1,542 ▼1223.00 ▲4.51654.73 ▲49.4956.62 ▼8.95
Media Library /wp-admin/upload.php1,402 ▲54.18 ▼0.03100.48 ▼4.5744.83 ▲2.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_widget-itunes-feed
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/widget-itunes-feed/helper.php
    • > /wp-content/plugins/widget-itunes-feed/admin/form.php
    • > /wp-content/plugins/widget-itunes-feed/widget-itunes-feed.php
    • > /wp-content/plugins/widget-itunes-feed/layouts/default.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: feed, apple, itunes, games, apps...

widget-itunes-feed/widget-itunes-feed.php Passed 13 tests

"Widget iTunes Feed" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
32 characters long description:
Display itunes feed on your site

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 plugin309 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4468264
CSS17032
JavaScript11013

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity13.50
▷ Minimum class complexity12.00
▷ Maximum class complexity15.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods333.33%
▷ Public methods666.67%
▷ Protected methods333.33%
▷ Private methods00.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 files were detected