83% transcoder

Code Review | Transcoder

WordPress plugin Transcoder scored83%from 54 tests.

About plugin

  • Plugin page: transcoder
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Aug 18, 2016
  • Latest release: Oct 20, 2023
  • Number of updates: 56
  • Update frequency: every 46.9 days
  • Top authors: rtcamp (62.5%)mangeshp (23.21%)pavanpatil1 (7.14%)pooja1210 (5.36%)thrijith (5.36%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /74,590 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.50MB] [CPU: ▼0.63ms] Passed 4 tests

Analyzing server-side resources used by Transcoder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5543.75 ▲5.46
Dashboard /wp-admin3.84 ▲0.4950.53 ▼9.17
Posts /wp-admin/edit.php3.89 ▲0.5351.38 ▲4.99
Add New Post /wp-admin/post-new.php6.38 ▲0.4996.41 ▼3.80
Media Library /wp-admin/upload.php3.70 ▲0.4743.09 ▲12.98

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

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

Browser metrics Passed 4 tests

Transcoder: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6714.48 ▼0.081.67 ▼0.0139.19 ▼1.18
Dashboard /wp-admin2,222 ▲445.88 ▲0.2679.18 ▼24.8476.88 ▲37.29
Posts /wp-admin/edit.php2,130 ▲272.00 ▼0.0037.93 ▼3.2134.63 ▼1.82
Add New Post /wp-admin/post-new.php1,708 ▲18022.14 ▼1.01669.00 ▲71.2651.88 ▼5.04
Media Library /wp-admin/upload.php1,418 ▲214.24 ▲0.0698.04 ▼2.3569.13 ▲24.54

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Trait 'Transcoder\\Inc\\Traits\\Singleton' not found in wp-content/plugins/transcoder/inc/classes/class-filesystem.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/transcoder/rt-transcoder.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function transcoder_filter_input() in wp-content/plugins/transcoder/admin/partials/rt-transcoder-admin-display.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/transcoder/admin/rt-retranscode-admin.php:1017
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/transcoder/admin/rt-transcoder-rest-routes.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/transcoder/admin/rt-transcoder-actions.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/transcoder/admin/rt-transcoder-functions.php:108

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 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
Please take inspiration from this readme.txt

transcoder/rt-transcoder.php 85% from 13 tests

"Transcoder" version 1.3.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("transcoder.php" instead of "rt-transcoder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin4,214 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP158061,4593,316
CSS56758556
JavaScript1073108342

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity66.43
▷ Minimum class complexity2.00
▷ Maximum class complexity266.00
Average method complexity6.59
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces3
Interfaces0
Traits1
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods82
▷ Static methods33.66%
▷ Public methods7591.46%
▷ Protected methods44.88%
▷ Private methods33.66%
Functions37
▷ Named functions37100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
admin/images/ui-bg_inset-hard_100_fcfdfd_1x100.png0.11KB0.09KB▼ 15.18%
admin/images/ui-bg_flat_55_fbec88_40x100.png0.21KB0.08KB▼ 59.15%
admin/images/ui-bg_glass_75_d0e5f5_1x400.png0.12KB0.16KB0.00%
admin/images/ui-bg_glass_85_dfeffc_1x400.png0.12KB0.15KB0.00%