83% kscw-feed-player

Code Review | KCSW Feed Player Widget

WordPress plugin KCSW Feed Player Widget scored83%from 54 tests.

About plugin

  • Plugin page: kscw-feed-player
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 16, 2019
  • Latest release: Mar 16, 2019
  • Number of updates: 4
  • Update frequency: every 3.8 days
  • Top authors: ccrsh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /619 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼11.12ms] Passed 4 tests

A check of server-side resources used by KCSW Feed Player Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.03 ▲1.99
Dashboard /wp-admin3.34 ▼0.0047.64 ▼24.77
Posts /wp-admin/edit.php3.39 ▲0.0445.36 ▼5.83
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.33 ▼15.27
Media Library /wp-admin/upload.php3.27 ▲0.0440.42 ▲1.38

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
widget_kcsw_podcast_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for KCSW Feed Player Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4314.35 ▲0.072.17 ▲0.5041.41 ▼4.47
Dashboard /wp-admin2,195 ▲245.53 ▼0.0785.29 ▼11.1040.07 ▼2.35
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0036.17 ▼0.5533.64 ▼6.42
Add New Post /wp-admin/post-new.php1,526 ▼222.92 ▼0.10664.96 ▼17.8860.91 ▲5.33
Media Library /wp-admin/upload.php1,400 ▼34.19 ▲0.09107.32 ▲0.1844.48 ▼4.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_kcsw_podcast_widget
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/kscw-feed-player/kcsw-feed-player-widget.php

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 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Requires at least: Invalid version format
  • Contributors: Contributors not specified
You can look at the official readme.txt

kscw-feed-player/kcsw-feed-player-widget.php 92% from 13 tests

The principal PHP file in "KCSW Feed Player Widget" v. 1.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("kscw-feed-player.php" instead of "kcsw-feed-player-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected561 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS24010196
JavaScript24926177
PHP13022154
SVG60034

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity9.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%
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
PNG images were not found in this plugin