88% media-recode-custom-modules

Code Review | Media Recode Modules

WordPress plugin Media Recode Modules scored 88% from 54 tests.

About plugin

  • Plugin page: media-recode-cust...
  • Plugin version: 1.8.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9
  • WordPress version: 5.9.2
  • First release: Oct 1, 2017
  • Latest release: Nov 15, 2017
  • Number of updates: 30
  • Update frequency: every 1.7 days
  • Top authors: mediarecode (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 784 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Media Recode Modules
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0154.21 ▲3.27
Dashboard /wp-admin3.41 ▲0.0031.61 ▼1.45
Posts /wp-admin/edit.php3.64 ▲0.0035.28 ▼1.33
Add New Post /wp-admin/post-new.php6.88 ▼0.0992.66 ▼1,183.07
Media Library /wp-admin/upload.php3.30 ▲0.0022.83 ▼1.72

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Media Recode Modules
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.88 ▲0.275.97 ▲0.253.07 ▲0.04
Dashboard /wp-admin2,895 ▲346.13 ▼0.03116.45 ▼19.09155.12 ▼8.78
Posts /wp-admin/edit.php2,694 ▲63.24 ▼0.0161.04 ▼0.83139.92 ▼6.46
Add New Post /wp-admin/post-new.php1,668 ▼8418.13 ▼3.40409.77 ▼38.67150.86 ▼0.59
Media Library /wp-admin/upload.php1,695 ▼05.52 ▲0.02133.15 ▼3.74183.62 ▼3.56

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

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 0% 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
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/media-recode-custom-modules/mr-multipoint-map/includes/frontend.css.php
    • > /wp-content/plugins/media-recode-custom-modules/mr-multipoint-map/includes/frontend.php
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Creating default object from empty value in wp-content/plugins/media-recode-custom-modules/mr-multipoint-map/includes/frontend.js.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderLoop' not found in wp-content/plugins/media-recode-custom-modules/mr-multipoint-map/includes/frontend.js.php:7
    • > PHP Notice
      Trying to get property 'use_category_filter' of non-object in wp-content/plugins/media-recode-custom-modules/mr-multipoint-map/includes/frontend.php on line 4
    • > PHP Notice
      Trying to get property 'map_api_key' of non-object in wp-content/plugins/media-recode-custom-modules/mr-multipoint-map/includes/frontend.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/media-recode-custom-modules/enhancements/membership-requirement/membership-requirement-row.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/media-recode-custom-modules/mr-multipoint-map/mr-multipoint-map.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/media-recode-custom-modules/mr-builder-modules.php:12
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/media-recode-custom-modules/mr-multipoint-map/includes/frontend.php on line 15
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/media-recode-custom-modules/mr-multipoint-map/includes/frontend.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/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
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

media-recode-custom-modules/mr-builder-modules.php 92% from 13 tests

The primary PHP file in "Media Recode Modules" version 1.8.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("media-recode-custom-modules.php" instead of "mr-builder-modules.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
There were no executable files found in this plugin466 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP66724466

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin