Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼140.78ms] Passed 4 tests
An overview of server-side resources used by External Media without Import
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 35.21 ▲8.43 |
Dashboard /wp-admin | 3.11 ▲0.05 | 49.17 ▲0.38 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 46.44 ▲0.85 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 89.94 ▼560.30 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 32.58 ▼4.03 |
Add External Media without Import /wp-admin/upload.php?page=add-external-media-without-import | 3.02 | 30.29 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for External Media without Import
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,712 ▲116 | 15.99 ▲0.38 | 10.14 ▼1.91 | 44.57 ▼0.82 |
Dashboard /wp-admin | 2,982 ▲45 | 6.06 ▲0.08 | 144.19 ▼17.64 | 122.82 ▲16.81 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.72 ▼0.13 | 69.76 ▲2.85 | 83.79 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,622 ▼61 | 21.00 ▲2.69 | 290.47 ▼146.70 | 110.02 ▲1.36 |
Media Library /wp-admin/upload.php | 1,836 ▲29 | 5.05 ▲0.05 | 158.50 ▲12.51 | 113.57 ▼1.07 |
Add External Media without Import /wp-admin/upload.php?page=add-external-media-without-import | 1,091 | 2.09 | 56.25 | 57.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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 following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function emwi\\add_action() in wp-content/plugins/external-media-without-import/external-media-without-import.php:37
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: remote image, remote media, remote url, remote file, external media
external-media-without-import/external-media-without-import.php Passed 13 tests
The entry point to "External Media without Import" version 1.1.2 is a PHP file that has certain tags in its header comment area
103 characters long description:
Add external images to the media library without importing, i.e. uploading them to your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin394 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 27 | 33 | 209 |
JavaScript | 1 | 7 | 4 | 79 |
CSS | 1 | 15 | 0 | 65 |
Markdown | 1 | 33 | 0 | 41 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 were not PNG files found in your plugin