77% open-beacon-mp4-conversion-and-compression

Code Review | Open Beacon MP4 Conversion and Compression

WordPress plugin Open Beacon MP4 Conversion and Compression scored77%from 54 tests.

About plugin

  • Plugin page: open-beacon-mp4-c...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.1
  • WordPress version: 6.3.1
  • First release: Sep 5, 2015
  • Latest release: Sep 7, 2015
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: Thabo David Klass (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /4,650 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.21MB] [CPU: ▲10.16ms] Passed 4 tests

A check of server-side resources used by Open Beacon MP4 Conversion and Compression
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2156.34 ▲10.76
Dashboard /wp-admin3.51 ▲0.2169.62 ▲12.45
Posts /wp-admin/edit.php3.62 ▲0.2765.79 ▲18.44
Add New Post /wp-admin/post-new.php6.11 ▲0.23103.31 ▼1.02
Media Library /wp-admin/upload.php3.43 ▲0.2057.43 ▲21.41
View OB MP4 Conversions and Compressions /wp-admin/edit.php?post_type=ob_mp4_c_and_c3.4854.33
OB MP4 Conversions and Compressions Categories /wp-admin/edit-tags.php?taxonomy=ob_mp4_cc_category&post_type=ob_mp4_c_and_c3.4462.04

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 12 new options
New WordPress options
ob_mp4_cc_category_children
widget_theysaidso_widget
db_upgraded
ob_mp4_cc_ffmpeg_quality
can_compress_scripts
ob_mp4_cc_system_environment_section
widget_recent-posts
ob_mp4_cc_ffmpeg_path
ob_mp4_cc_max_video_size
theysaidso_admin_options
...

Browser metrics Passed 4 tests

Checking browser requirements for Open Beacon MP4 Conversion and Compression
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9214.35 ▲0.161.77 ▼0.0143.20 ▲0.23
Dashboard /wp-admin2,244 ▲705.53 ▼0.0384.17 ▼19.2740.38 ▼6.37
Posts /wp-admin/edit.php2,146 ▲461.97 ▼0.0835.64 ▲0.7935.17 ▼2.83
Add New Post /wp-admin/post-new.php1,568 ▲4222.94 ▼0.10645.51 ▼38.3251.34 ▲1.05
Media Library /wp-admin/upload.php1,452 ▲554.28 ▲0.1195.97 ▼9.2245.38 ▼1.39
View OB MP4 Conversions and Compressions /wp-admin/edit.php?post_type=ob_mp4_c_and_c1,1191.9833.6128.28
OB MP4 Conversions and Compressions Categories /wp-admin/edit-tags.php?taxonomy=ob_mp4_cc_category&post_type=ob_mp4_c_and_c2,1142.3030.9836.23

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/open-beacon-mp4-conversion-and-compression/ob-mp4-conversion-and-compression.php:24

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=ob_mp4_cc_category&post_type=ob_mp4_c_and_c
    • > Network (severe)
    wp-content/plugins/open-beacon-mp4-conversion-and-compression/includes/js/radiotax.js - Failed to load resource: the server responded with a status of 404 (Not Found)

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:
  • Screenshots: These screenshots do not have images: #1 (The Open Beacon MP4 Conversion and Compression main page. This is where), #2 (The Settings page. FFmpeg settings are configured here.), #3 (The list page showing all the conversions and compressions that have been made.), #4 (The View Open Beacon MP4 Conversion and Compression page which shows a single video), #5 (The categories page.)
You can look at the official readme.txt

open-beacon-mp4-conversion-and-compression/ob-mp4-conversion-and-compression.php 85% from 13 tests

"Open Beacon MP4 Conversion and Compression" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 411 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("open-beacon-mp4-conversion-and-compression.php" instead of "ob-mp4-conversion-and-compression.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
Success! There were no dangerous files found in this plugin782 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP5222464675
JavaScript2151475
CSS18032

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity22.33
▷ Minimum class complexity10.00
▷ Maximum class complexity34.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods33
▷ Static methods412.12%
▷ Public methods33100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 1.14MB with 0.73MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png104.72KB38.16KB▼ 63.56%
screenshot-4.png453.20KB171.66KB▼ 62.12%
screenshot-5.png125.00KB45.37KB▼ 63.70%
screenshot-2.png192.21KB64.57KB▼ 66.41%
screenshot-1.png117.15KB43.55KB▼ 62.83%