83% wp-video-baker

Code Review | WPVideoBaker – Repurpose your WordPress Blog post to Video

WordPress plugin WPVideoBaker – Repurpose your WordPress Blog post to Video scored83%from 54 tests.

About plugin

  • Plugin page: wp-video-baker
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 5, 2023
  • Latest release: Jan 11, 2023
  • Number of updates: 7
  • Update frequency: every 1.0 days
  • Top authors: wpgeekil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /763 total downloads

Benchmarks

Plugin footprint 81% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲6.56MB] [CPU: ▲1,769.82ms] 50% from 4 tests

Analyzing server-side resources used by WPVideoBaker – Repurpose your WordPress Blog post to Video
Please fix the following
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 6.56MB on /wp-admin/admin.php?page=video_baker#tab=global-settings)
  • Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 1,769.82ms on /wp-admin/admin.php?page=video_baker#tab=global-settings)
PageMemory (MB)CPU Time (ms)
Home /10.54 ▲7.081,503.87 ▲1,460.02
Dashboard /wp-admin10.57 ▲7.261,921.01 ▲1,868.48
Posts /wp-admin/edit.php10.57 ▲7.211,873.85 ▲1,828.54
Add New Post /wp-admin/post-new.php10.57 ▲4.682,026.05 ▲1,922.24
Media Library /wp-admin/upload.php10.57 ▲7.341,993.35 ▲1,962.82

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

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

Browser metrics 75% from 4 tests

An overview of browser requirements for WPVideoBaker – Repurpose your WordPress Blog post to Video
Please improve the following
  • Nodes: For the best user experience, please reduce the number of DOM nodes under 25,000 (currently 155,077 on /wp-admin/admin.php?page=video_baker#tab=opener-settings)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲18213.49 ▼1.238.22 ▲6.2240.41 ▼6.22
Dashboard /wp-admin2,267 ▲905.58 ▼0.0783.01 ▼11.1741.96 ▲0.63
Posts /wp-admin/edit.php2,364 ▲2643.61 ▲1.6267.88 ▲28.4436.15 ▼1.94
Add New Post /wp-admin/post-new.php1,868 ▲32718.84 ▼4.12699.22 ▲26.1555.61 ▲2.72
Media Library /wp-admin/upload.php1,469 ▲724.18 ▼0.0678.29 ▼28.0745.15 ▼1.50
Import/Export Settings /wp-admin/admin.php?page=video_baker#tab=import-export-settings154,24410.44404.4847.01
Thank You settings /wp-admin/admin.php?page=video_baker#tab=thank-you-settings154,53411.95477.0766.30
Welcome /wp-admin/admin.php?page=video_baker#tab=welcome154,25410.54404.12116.17
Opener settings /wp-admin/admin.php?page=video_baker#tab=opener-settings155,07715.05484.9775.32
Global Settings /wp-admin/admin.php?page=video_baker#tab=global-settings154,62912.41475.4997.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • video_baker_admin
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-video-baker/admin/partials/wp-video-baker-admin-display.php
    • > /wp-content/plugins/wp-video-baker/public/partials/wp-video-baker-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

wp-video-baker/wp-video-baker.php 92% from 13 tests

Analyzing the main PHP file in "WPVideoBaker – Repurpose your WordPress Blog post to Video" version 1.0
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 315 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected32,157 lines of code in 142 files:
LanguageFilesBlank linesComment linesLines of code
PHP912,7241,4908,496
JavaScript71,3245216,611
PO File203,1983,5916,500
Sass1696935,667
CSS63915174,881
SVG2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity22.96
▷ Minimum class complexity1.00
▷ Maximum class complexity150.00
Average method complexity6.55
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes69
▷ Abstract classes22.90%
▷ Concrete classes6797.10%
▷ Final classes00.00%
Methods273
▷ Static methods4416.12%
▷ Public methods26898.17%
▷ Protected methods00.00%
▷ Private methods51.83%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
6 PNG files occupy 0.39MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/functions/assets/img/blcakwhite-4.png24.71KB6.65KB▼ 73.07%
screenshots/builder.png89.73KB24.29KB▼ 72.93%
admin/functions/assets/img/blcakwhite-5.png12.31KB3.51KB▼ 71.48%
screenshots/global.png260.31KB73.68KB▼ 71.70%
admin/functions/assets/img/blcakwhite-6.png12.38KB4.46KB▼ 63.94%