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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 38.68 ▲17.41 |
Dashboard /wp-admin | 3.13 ▲0.08 | 41.60 ▼19.00 |
Posts /wp-admin/edit.php | 3.24 ▲0.14 | 46.16 ▲4.62 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 89.33 ▼1,053.80 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 34.67 ▼9.17 |
Remote Media /wp-admin/upload.php?page=wprm-options | 3.04 | 29.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,694 ▲88 | 16.28 ▲0.65 | 6.70 ▼3.41 | 52.50 ▲4.66 |
Dashboard /wp-admin | 2,975 ▲125 | 6.14 ▲0.31 | 145.53 ▲13.89 | 97.32 ▲1.56 |
Posts /wp-admin/edit.php | 2,719 ▲13 | 2.70 ▲0.02 | 65.07 ▼2.81 | 93.96 ▼1.28 |
Add New Post /wp-admin/post-new.php | 1,665 ▼192 | 17.23 ▼1.95 | 344.18 ▼27.91 | 112.65 ▲7.48 |
Media Library /wp-admin/upload.php | 1,788 ▲16 | 5.03 ▼0.02 | 145.45 ▲1.55 | 108.26 ▼8.95 |
Remote Media /wp-admin/upload.php?page=wprm-options | 1,018 | 2.34 | 62.36 | 60.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
- > PHP Fatal error
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 174 | 595 | 347 |
JavaScript | 2 | 6 | 0 | 53 |
CSS | 1 | 1 | 7 | 0 |
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 code | 0.23 |
Average class complexity | 5.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 21 | 53.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 46.15% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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