100% widget-subtitles

Code Review | Widget Subtitles

WordPress plugin Widget Subtitles scored 100% from 53 tests.

About plugin

  • Plugin page: widget-subtitles
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8
  • WordPress version: 5.8.1
  • First release: Jun 30, 2016
  • Latest release: Oct 13, 2021
  • Number of updates: 32
  • Update frequency: every 60.3 days
  • Top authors: keraweb (100%)

Code review

53 tests

User reviews

2 reviews

Install metrics

300+ active / 4,399 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼262.04ms] Passed 4 tests

An overview of server-side resources used by Widget Subtitles
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1936.05 ▲13.21
Dashboard /wp-admin3.13 ▲0.0841.51 ▼1.46
Posts /wp-admin/edit.php3.18 ▲0.0843.64 ▲8.54
Add New Post /wp-admin/post-new.php5.49 ▲0.0685.04 ▼1,049.32
Media Library /wp-admin/upload.php3.07 ▲0.0729.43 ▼5.90

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Widget Subtitles
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,674 ▲9215.88 ▲0.428.84 ▼0.2852.24 ▲7.87
Dashboard /wp-admin2,931 ▲785.91 ▲0.05134.92 ▲2.89106.54 ▲5.46
Posts /wp-admin/edit.php2,703 ▼32.69 ▼0.0063.53 ▼4.5494.89 ▲8.07
Add New Post /wp-admin/post-new.php1,481 ▼10718.46 ▼3.38350.31 ▲66.36106.97 ▲3.77
Media Library /wp-admin/upload.php1,772 ▼04.99 ▼0.02144.60 ▼11.91110.47 ▼3.26

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

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)
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: widget, sub title, sidebar, subtitles, widget subtitle...

widget-subtitles/widget-subtitles.php 92% from 13 tests

The primary PHP file in "Widget Subtitles" version 1.2.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin333 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of 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.31
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
▷ Static methods15.88%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin