100% add-subtitle

Code Review | Add Subtitle

WordPress plugin Add Subtitle scored 100% from 53 tests.

About plugin

  • Plugin page: add-subtitle
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8.1
  • WordPress version: 5.8.1
  • First release: Nov 27, 2017
  • Latest release: Sep 13, 2021
  • Number of updates: 43
  • Update frequency: every 32.3 days
  • Top authors: mitalideva (90.7%)viitorcloudvc (11.63%)

Code review

53 tests

User reviews

2 reviews

Install metrics

400+ active / 4,597 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼266.86ms] Passed 4 tests

An overview of server-side resources used by Add Subtitle
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0335.35 ▲0.27
Dashboard /wp-admin3.08 ▲0.0345.22 ▲4.64
Posts /wp-admin/edit.php3.13 ▲0.0341.56 ▼2.28
Add New Post /wp-admin/post-new.php5.45 ▲0.0292.38 ▼1,055.06
Media Library /wp-admin/upload.php3.02 ▲0.0230.03 ▼10.38

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add Subtitle
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,676 ▲7015.95 ▲0.118.83 ▲1.0852.27 ▲5.57
Dashboard /wp-admin2,931 ▲815.92 ▲0.02133.61 ▲3.39102.57 ▼0.60
Posts /wp-admin/edit.php2,706 ▼02.69 ▼0.0064.37 ▼0.1393.17 ▲5.07
Add New Post /wp-admin/post-new.php1,655 ▼1918.68 ▼0.19349.02 ▼13.21112.64 ▲3.39
Media Library /wp-admin/upload.php1,775 ▼05.01 ▲0.00138.46 ▼25.49117.97 ▲0.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: subhead, content, subtitle, subheading, subtitles...

add-subtitle/wpd-sub-title.php 92% from 13 tests

The primary PHP file in "Add Subtitle" version 1.1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-subtitle.php" instead of "wpd-sub-title.php")

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
Everything looks great! No dangerous files found in this plugin160 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP794198154
CSS2136

PHP code Passed 2 tests

Analyzing 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.35
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin