89% be-media-from-production

Code Review | BE Media from Production

WordPress plugin BE Media from Production scored89%from 54 tests.

About plugin

  • Plugin page: be-media-from-pro...
  • Plugin version: 1.7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3
  • WordPress version: 6.3.1
  • First release: May 9, 2019
  • Latest release: Jul 20, 2023
  • Number of updates: 11
  • Update frequency: every 140.1 days
  • Top authors: billerickson (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /8,229 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.20ms] Passed 4 tests

This is a short check of server-side resources used by BE Media from Production
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.36 ▼7.30
Dashboard /wp-admin3.32 ▲0.0242.77 ▼6.87
Posts /wp-admin/edit.php3.37 ▲0.0150.24 ▲3.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.81 ▼15.63
Media Library /wp-admin/upload.php3.24 ▲0.0132.52 ▲1.02

Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for BE Media from Production
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.341.63 ▼0.2936.63 ▼8.34
Dashboard /wp-admin2,206 ▲204.86 ▼0.06111.00 ▲8.3642.00 ▼1.19
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0440.27 ▲4.1033.98 ▲1.80
Add New Post /wp-admin/post-new.php1,519 ▼1423.12 ▼0.37657.08 ▼13.6747.02 ▼4.74
Media Library /wp-admin/upload.php1,388 ▼04.24 ▼0.0492.43 ▼5.2939.89 ▼4.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: images, image, media, local, development...

be-media-from-production/be-media-from-production.php 85% from 13 tests

The entry point to "BE Media from Production" version 1.7.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin129 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin