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
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼296.20ms] Passed 4 tests
An overview of server-side resources used by Add Media from URL
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 54.66 ▼0.78 |
Dashboard /wp-admin | 3.43 ▲0.02 | 32.04 ▼0.97 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 34.48 ▼0.56 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 93.23 ▼1,176.13 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 24.14 ▼6.91 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Add Media from URL
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲46 | 15.82 ▲0.17 | 5.88 ▼0.67 | 2.34 ▲0.10 |
Dashboard /wp-admin | 2,897 ▲36 | 6.06 ▼0.11 | 114.95 ▼18.31 | 151.85 ▼11.31 |
Posts /wp-admin/edit.php | 2,718 ▲24 | 3.23 ▼0.00 | 62.15 ▲0.88 | 138.03 ▼4.36 |
Add New Post /wp-admin/post-new.php | 1,755 ▲3 | 20.87 ▼0.49 | 466.32 ▲35.56 | 152.44 ▼4.38 |
Media Library /wp-admin/upload.php | 1,703 ▲2 | 5.49 ▼0.02 | 139.33 ▼15.33 | 184.83 ▼9.28 |
Add from URL /wp-admin/add-media-from-url.php | 26 | 0.94 | 0.04 | 20.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 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 50% 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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-media-from-url/add-media-from-url.php:35
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/add-media-from-url.php
- > Network (severe)
wp-admin/add-media-from-url.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: You are using too many tags: 14 tag instead of maximum 10
add-media-from-url/add-media-from-url.php Passed 13 tests
The main PHP script in "Add Media from URL" version 1.0.2 is automatically included on every request by WordPress
78 characters long description:
Let you add media files into your media library without having to upload them.
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
No dangerous file extensions were detected202 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 106 | 60 | 202 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 20.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin