10% kodio-text-widget

Code Review | Kodio Text Widget

WordPress plugin Kodio Text Widget scored10%from 54 tests.

About plugin

  • Plugin page: kodio-text-widget
  • Plugin version: 1.8.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.4.1
  • WordPress version: 6.3.1
  • First release: Jan 21, 2016
  • Latest release: Jan 21, 2016
  • Number of updates: 17
  • Update frequency: every 0.7 days
  • Top authors: mithun@gmx.net (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,657 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/kodio-text-widget/kodio-text-widget.php+15
    Methods with the same name as their class will not be constructors in a future version of PHP; Kodio_Text_Widget has a deprecated constructor

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

An overview of server-side resources used by Kodio Text Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.344.14 ▼39.50
Dashboard /wp-admin2.15 ▼1.205.76 ▼56.45
Posts /wp-admin/edit.php2.15 ▼1.215.94 ▼40.53
Add New Post /wp-admin/post-new.php2.15 ▼3.745.72 ▼88.74
Media Library /wp-admin/upload.php2.15 ▼1.085.72 ▼28.67

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_kodio_text_widget
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Kodio Text Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,974 ▲22814.99 ▲0.701.66 ▼0.2142.90 ▲0.61
Dashboard /wp-admin2,366 ▲1816.76 ▲0.88129.92 ▲30.2941.74 ▲4.46
Posts /wp-admin/edit.php2,278 ▲1893.63 ▲1.6157.49 ▲19.5036.34 ▼0.64
Add New Post /wp-admin/post-new.php1,540 ▲2323.44 ▲5.69680.18 ▼7.0937.43 ▼12.58
Media Library /wp-admin/upload.php1,414 ▲234.48 ▲0.2580.65 ▼21.4641.72 ▼2.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/kodio-text-widget/kodio-text-widget.php+15
    Methods with the same name as their class will not be constructors in a future version of PHP; Kodio_Text_Widget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_kodio_text_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 8× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/kodio-text-widget/includes/functions.php
    • > /wp-content/plugins/kodio-text-widget/includes/textarea.php
    • > /wp-content/plugins/kodio-text-widget/includes/variables.php
    • > /wp-content/plugins/kodio-text-widget/includes/widget.php
    • > /wp-content/plugins/kodio-text-widget/kodio-text-widget.php
    • > /wp-content/plugins/kodio-text-widget/includes/button.php
    • > /wp-content/plugins/kodio-text-widget/includes/icon.php
    • > /wp-content/plugins/kodio-text-widget/includes/image.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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Invalid url: "none"
The official readme.txt might help

kodio-text-widget/kodio-text-widget.php 92% from 13 tests

"Kodio Text Widget" version 1.8.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 243 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin6,328 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
CSS40132,095
Sass1328241,560
LESS1328341,550
SVG100655
PHP85933443
JavaScript12225

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity6.20
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin