78% media-recode-custom-modules

Code Review | Media Recode Modules

WordPress plugin Media Recode Modules scored 78% 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: 6.3.1
  • 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

20+ active / 988 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.62ms] Passed 4 tests

Analyzing server-side resources used by Media Recode Modules
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.05 ▼5.23
Dashboard /wp-admin3.31 ▲0.0145.77 ▼6.53
Posts /wp-admin/edit.php3.36 ▲0.0044.66 ▲0.10
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.57 ▲2.87
Media Library /wp-admin/upload.php3.23 ▲0.0036.10 ▲1.19

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Media Recode Modules
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.76 ▲0.011.72 ▼0.7538.97 ▼6.67
Dashboard /wp-admin2,206 ▲185.85 ▼0.02103.27 ▼3.6239.20 ▲1.98
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0139.77 ▲1.7235.45 ▼0.95
Add New Post /wp-admin/post-new.php1,534 ▼123.02 ▼0.16588.59 ▼104.9259.57 ▲3.14
Media Library /wp-admin/upload.php1,388 ▼04.24 ▼0.02103.75 ▼8.0142.75 ▼4.75

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files output text 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 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 Notice
      Undefined variable: settings in wp-content/plugins/media-recode-custom-modules/mr-multipoint-map/includes/frontend.php on line 4
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/media-recode-custom-modules/mr-multipoint-map/includes/frontend.php on line 15
    • > 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 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 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 'FLBuilderLoop' not found in wp-content/plugins/media-recode-custom-modules/mr-multipoint-map/includes/frontend.js.php:7
    • > 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 Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/media-recode-custom-modules/mr-multipoint-map/mr-multipoint-map.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Contributors: Contributors not specified
Please take inspiration from this readme.txt

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

"Media Recode Modules" version 1.8.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin466 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP66724466

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued 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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin