84% kia-subtitle

Code Review | KIA Subtitle

WordPress plugin KIA Subtitle scored84%from 54 tests.

About plugin

  • Plugin page: kia-subtitle
  • Plugin version: 3.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9.3
  • WordPress version: 6.3.1
  • First release: Jul 12, 2012
  • Latest release: Apr 9, 2022
  • Number of updates: 73
  • Update frequency: every 48.9 days
  • Top authors: helgatheviking (95.89%)deployer (5.48%)

Code review

54 tests

User reviews

16 reviews

Install metrics

6,000+ active /40,079 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼8.74ms] Passed 4 tests

A check of server-side resources used by KIA Subtitle
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1142.53 ▲2.31
Dashboard /wp-admin3.41 ▲0.0651.18 ▼11.96
Posts /wp-admin/edit.php3.53 ▲0.1754.78 ▲1.95
Add New Post /wp-admin/post-new.php5.96 ▲0.0788.12 ▼23.96
Media Library /wp-admin/upload.php3.33 ▲0.1039.36 ▼0.98
KIA Subtitle /wp-admin/options-general.php?page=kia_subtitle3.3033.69

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

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

Browser metrics Passed 4 tests

Checking browser requirements for KIA Subtitle
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.34 ▼0.011.65 ▲0.0844.18 ▲4.54
Dashboard /wp-admin2,199 ▲195.57 ▲0.0081.84 ▼11.7037.82 ▼6.18
Posts /wp-admin/edit.php2,134 ▲522.00 ▼0.0139.89 ▼1.2136.75 ▼3.94
Add New Post /wp-admin/post-new.php1,700 ▲16922.38 ▼0.73670.79 ▲44.8935.85 ▼28.36
Media Library /wp-admin/upload.php1,404 ▲14.19 ▲0.0098.41 ▼4.8147.87 ▲0.95
KIA Subtitle /wp-admin/options-general.php?page=kia_subtitle8382.0025.3825.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 8 options in the database
    • db_upgraded
    • kia_subtitle_options
    • can_compress_scripts
    • kia_subtitle_db_version
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/kia-subtitle/includes/views/plugin-options.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention: Please take inspiration from this readme.txt

kia-subtitle/kia-subtitle.php Passed 13 tests

This is the main PHP file of "KIA Subtitle" version 3.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
47 characters long description:
Adds a subtitle field to WordPress' Post editor

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected390 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3169339361
JavaScript3111324
XML1005

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity54.00
▷ Minimum class complexity54.00
▷ Maximum class complexity54.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods32
▷ Static methods515.62%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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