68% subtitle-finder

Code Review | Subtitle Finder

WordPress plugin Subtitle Finder scored68%from 54 tests.

About plugin

  • Plugin page: subtitle-finder
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Sep 28, 2014
  • Latest release: Sep 4, 2016
  • Number of updates: 108
  • Update frequency: every 6.6 days
  • Top authors: m.dehqany (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /6,922 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.18MB] [CPU: ▼41.29ms] Passed 4 tests

A check of server-side resources used by Subtitle Finder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.81 ▼0.6614.01 ▼20.93
Dashboard /wp-admin2.84 ▼0.5015.66 ▼40.25
Posts /wp-admin/edit.php2.85 ▼0.5117.39 ▼27.49
Add New Post /wp-admin/post-new.php2.84 ▼3.0414.25 ▼76.47
Media Library /wp-admin/upload.php2.85 ▼0.3814.92 ▼18.53
Subtitle Finder /wp-admin/options-general.php?page=subt-public-setting2.8515.63

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Subtitle Finder: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.27 ▼0.281.53 ▼0.1439.23 ▲0.84
Dashboard /wp-admin2,199 ▲255.60 ▼0.0490.51 ▼14.9637.21 ▼23.16
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0140.17 ▼0.2835.49 ▼2.74
Add New Post /wp-admin/post-new.php1,529 ▼223.13 ▲0.12669.46 ▲47.6460.90 ▲12.64
Media Library /wp-admin/upload.php1,404 ▲44.16 ▲0.0094.90 ▼4.5444.27 ▼0.56
Subtitle Finder /wp-admin/options-general.php?page=subt-public-setting1,1162.0324.9923.92

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
    • > Notice in wp-content/plugins/subtitle-finder/download.php+3
    Undefined index: url
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/download.php+3
    Undefined index: url
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+34
    Undefined index: Albanian
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+35
    Undefined index: Arabic
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+36
    Undefined index: Azerbaijani
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+37
    Undefined index: Bengali
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+38
    Undefined index: Big-5-code
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+39
    Undefined index: Bosnian
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+40
    Undefined index: Brazillian-Portuguese
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+41
    Undefined index: Bulgarian
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+42
    Undefined index: Bulgarian_English
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+43
    Undefined index: Burmese
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+44
    Undefined index: Catalan
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+45
    Undefined index: Chinese-BG-code
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+46
    Undefined index: Croatian
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+47
    Undefined index: Czech
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+48
    Undefined index: Danish
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+49
    Undefined index: Dutch
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+50
    Undefined index: Dutch_English
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+51
    Undefined index: English
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+52
    Undefined index: English_German
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+53
    Undefined index: Esperanto
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+54
    Undefined index: Estonian
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+55
    Undefined index: Farsi_Persian
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+56
    Undefined index: Finnish
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+57
    Undefined index: French
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+58
    Undefined index: Georgian
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+59
    Undefined index: German
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+60
    Undefined index: Greek
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+61
    Undefined index: Greenlandic
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+62
    Undefined index: Hebrew
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+63
    Undefined index: Hindi
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+64
    Undefined index: Hungarian
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+65
    Undefined index: Hungarian_English
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+66
    Undefined index: Icelandic
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+67
    Undefined index: Italian
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+68
    Undefined index: Japanese
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+69
    Undefined index: Korean
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+70
    Undefined index: Kurdish
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+71
    Undefined index: Latvian
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+72
    Undefined index: Lithuanian
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+73
    Undefined index: Macedonian
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+74
    Undefined index: Malay
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+75
    Undefined index: Malayalam
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+76
    Undefined index: Manipuri
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+77
    Undefined index: Norwegian
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+78
    Undefined index: Polish
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+79
    Undefined index: Portuguese
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+80
    Undefined index: Romanian
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+81
    Undefined index: Russian
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+82
    Undefined index: Serbian
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+83
    Undefined index: Sinhala
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+84
    Undefined index: Slovak
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+85
    Undefined index: Slovenian
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+86
    Undefined index: Spanish
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+87
    Undefined index: Swedish
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+88
    Undefined index: Tagalog
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+89
    Undefined index: Tamil
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+90
    Undefined index: Telugu
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+91
    Undefined index: Thai
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+92
    Undefined index: Turkish
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+93
    Undefined index: Ukranian
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+94
    Undefined index: Urdu
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+95
    Undefined index: Vietnamese
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+102
    Undefined variable: radio1
    • > GET request to /wp-admin/options-general.php?page=subt-public-setting
    • > Notice in wp-content/plugins/subtitle-finder/subtitle_finder.php+104
    Undefined offset: 1

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/subtitle-finder/subtitle_finder.php:110

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === subtitle-finder === )
The official readme.txt might help

subtitle-finder/subtitle_finder.php 92% from 13 tests

The entry point to "Subtitle Finder" version 1.6 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("subtitle-finder.php" instead of "subtitle_finder.php")

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
Good job! No executable or dangerous file extensions detected430 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2721358
PO File113239
CSS10033

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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
PNG images were not found in this plugin