Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.22ms] Passed 4 tests
An overview of server-side resources used by External files in media library
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.99 ▼0.90 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.90 ▲0.96 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.19 ▼0.86 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.90 ▼17.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.81 ▼1.69 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for External files in media library
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.32 ▲0.11 | 1.80 ▲0.10 | 43.74 ▲3.07 |
Dashboard /wp-admin | 2,198 ▲24 | 5.59 ▲0.05 | 84.47 ▼0.40 | 42.11 ▲3.68 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.02 | 33.15 ▼7.13 | 35.17 ▼4.65 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.32 ▲0.27 | 651.93 ▲51.94 | 47.57 ▼18.38 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.27 ▲0.05 | 96.99 ▼0.92 | 41.34 ▼3.28 |
Uninstaller [IO: ▲0.18MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the followingZombie WordPress options were found after uninstall: 7 options
- Uninstall procedure validation failed for this plugin
- > Parse error in wp-content/plugins/external-files-in-media-library/classes/eml/Controller/class-external-files.php+390
syntax error, unexpected '|', expecting ';' or '{'
- The plugin did not uninstall correctly, leaving 25 files (0.18MB) in the plugin directory
- (new file) admin/js.js
- (new file) classes/eml/Controller/class-init.php
- (new file) classes/eml/Controller/class-uninstall.php
- (new file) classes/eml/Model/class-log.php
- (new file) classes/eml/Controller/class-external-files.php
- (new file) classes/eml/Model/class-external-file.php
- (new file) classes/eml/Controller/class-cli.php
- (new file) classes/eml/Controller/class-install.php
- (new file) admin/style.css
- (new file) classes/eml/Controller/class-proxy.php
- ...
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- recovery_mode_email_last_sent
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Parse error
syntax error, unexpected '|', expecting ';' or '{' in wp-content/plugins/external-files-in-media-library/classes/eml/Controller/class-external-files.php on line 390
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/external-files-in-media-library/classes/eml/Controller/class-init.php on line 283
- > PHP Parse error
syntax error, unexpected '|', expecting ';' or '{' in wp-content/plugins/external-files-in-media-library/classes/eml/class-transient.php on line 245
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/external-files-in-media-library/inc/admin.php on line 1161
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 ()
external-files-in-media-library/external-files-in-media-library.php Passed 13 tests
The principal PHP file in "External files in media library" v. 1.0.1 is loaded by WordPress automatically on each request
48 characters long description:
Enables the Media Library to use external files.
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
Good job! No executable or dangerous file extensions detected2,878 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 532 | 1,686 | 2,252 |
PO File | 2 | 176 | 214 | 529 |
JavaScript | 1 | 9 | 16 | 66 |
CSS | 1 | 6 | 0 | 31 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 17.08 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 142 | |
▷ Static methods | 15 | 10.56% |
▷ Public methods | 111 | 78.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 31 | 21.83% |
Functions | 28 | |
▷ Named functions | 27 | 96.43% |
▷ Anonymous functions | 1 | 3.57% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected