Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.10ms] Passed 4 tests
Analyzing server-side resources used by Find Remote File
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.67 ▲1.15 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.46 ▲1.73 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.64 ▲1.35 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.52 ▼4.62 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.51 ▲5.97 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Find Remote File
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 13.56 ▼0.83 | 1.70 ▼0.22 | 43.48 ▼2.32 |
Dashboard /wp-admin | 2,218 ▲44 | 4.87 ▼0.94 | 136.23 ▲18.78 | 41.08 ▼5.29 |
Posts /wp-admin/edit.php | 2,098 ▲12 | 2.01 ▲0.02 | 35.33 ▼0.50 | 33.08 ▼0.27 |
Add New Post /wp-admin/post-new.php | 1,552 ▲16 | 18.41 ▼4.88 | 598.25 ▼24.82 | 51.92 ▼1.85 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.20 ▼0.12 | 95.22 ▼5.56 | 40.91 ▼2.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/find-remote-file/views/file-details-preview.php
- > /wp-content/plugins/find-remote-file/views/find-remote-file-dashboard.php
- > /wp-content/plugins/find-remote-file/admin/partials/file-url-validator-admin.php
- > /wp-content/plugins/find-remote-file/admin/partials/file-details-preview.php
- > /wp-content/plugins/find-remote-file/public/partials/find-remote-file-public-display.php
- 21× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/find-remote-file/admin/partials/file-details-preview.php on line 19
- > PHP Notice
Undefined variable: file_prev_details in wp-content/plugins/find-remote-file/admin/partials/file-details-preview.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/find-remote-file/views/file-details-preview.php on line 19
- > PHP Notice
Undefined variable: file_prev_details in wp-content/plugins/find-remote-file/views/file-details-preview.php on line 13
- > PHP Notice
Undefined variable: file_prev_details in wp-content/plugins/find-remote-file/admin/partials/file-details-preview.php on line 31
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/find-remote-file/admin/partials/file-details-preview.php on line 31
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/find-remote-file/admin/partials/file-details-preview.php on line 13
- > PHP Notice
Undefined variable: file_prev_details in wp-content/plugins/find-remote-file/views/file-details-preview.php on line 7
- > PHP Notice
Undefined variable: file_prev_details in wp-content/plugins/find-remote-file/admin/partials/file-details-preview.php on line 25
- > PHP Notice
Undefined variable: file_prev_details in wp-content/plugins/find-remote-file/views/file-details-preview.php on line 31
- > PHP Notice
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #1, #2, #3 in find-remote-file/assets to your readme.txt
find-remote-file/find-remote-file.php Passed 13 tests
The main PHP script in "Find Remote File" version 1.0.0 is automatically included on every request by WordPress
93 characters long description:
This Find Remote File Plugin is basically for finding the file details by passing remote url.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,695 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 157 | 164 | 1,155 |
PHP | 14 | 169 | 472 | 442 |
CSS | 4 | 10 | 26 | 98 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 4.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin