94% remote-media-upload

Code Review | Remote Media Upload

WordPress plugin Remote Media Upload scored 94% from 53 tests.

About plugin

  • Plugin page: remote-media-upload
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7.2-5.7.2
  • WordPress version: 5.8.1
  • First release: Jun 18, 2021
  • Latest release: Jun 18, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: rashedul007 (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 112 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.09MB] [CPU: ▼269.34ms] Passed 4 tests

A check of server-side resources used by Remote Media Upload
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1838.68 ▲17.41
Dashboard /wp-admin3.13 ▲0.0841.60 ▼19.00
Posts /wp-admin/edit.php3.24 ▲0.1446.16 ▲4.62
Add New Post /wp-admin/post-new.php5.49 ▲0.0689.33 ▼1,053.80
Media Library /wp-admin/upload.php3.07 ▲0.0734.67 ▼9.17
Remote Media /wp-admin/upload.php?page=wprm-options3.0429.79

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Remote Media Upload: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,694 ▲8816.28 ▲0.656.70 ▼3.4152.50 ▲4.66
Dashboard /wp-admin2,975 ▲1256.14 ▲0.31145.53 ▲13.8997.32 ▲1.56
Posts /wp-admin/edit.php2,719 ▲132.70 ▲0.0265.07 ▼2.8193.96 ▼1.28
Add New Post /wp-admin/post-new.php1,665 ▼19217.23 ▼1.95344.18 ▼27.91112.65 ▲7.48
Media Library /wp-admin/upload.php1,788 ▲165.03 ▼0.02145.45 ▲1.55108.26 ▼8.95
Remote Media /wp-admin/upload.php?page=wprm-options1,0182.3462.3660.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/remote-media-upload/admin/partials/wprm-settings-page.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === remote-media-upload === )
The official readme.txt is a good inspiration

remote-media-upload/remote-media-upload.php 92% from 13 tests

The main file in "Remote Media Upload" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin400 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP11174595347
JavaScript26053
CSS1170

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity5.14
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity1.74
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods39
▷ Static methods25.13%
▷ Public methods2153.85%
▷ Protected methods00.00%
▷ Private methods1846.15%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

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