Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼137.66ms] Passed 4 tests
A check of server-side resources used by Media from FTP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 37.65 ▲15.63 |
Dashboard /wp-admin | 3.10 ▲0.04 | 55.09 ▲9.53 |
Posts /wp-admin/edit.php | 3.18 ▲0.08 | 44.20 ▲0.26 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 95.90 ▼554.98 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 33.32 ▼5.43 |
Log /wp-admin/admin.php?page=mediafromftp-log | 3.02 | 31.67 |
Media from FTP /wp-admin/admin.php?page=mediafromftp | 3.02 | 30.57 |
Add-Ons /wp-admin/admin.php?page=mediafromftp-addons | 3.02 | 32.33 |
Settings /wp-admin/admin.php?page=mediafromftp-settings | 3.02 | 30.30 |
Search & Register /wp-admin/admin.php?page=mediafromftp-search-register | 3.03 | 57.86 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: 1 new table, 4 new options
New tables |
---|
wp_mediafromftp_log |
New WordPress options |
---|
mediafromftp_add_on_wpcron_events |
mediafromftp_log_version |
mediafromftp |
mediafromftp_notice |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Media from FTP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,728 ▲132 | 15.89 ▲0.44 | 8.88 ▼1.29 | 43.87 ▼5.90 |
Dashboard /wp-admin | 3,016 ▲85 | 6.00 ▲0.07 | 161.16 ▲1.94 | 112.05 ▼0.46 |
Posts /wp-admin/edit.php | 2,788 ▲49 | 2.81 ▲0.11 | 70.60 ▲2.65 | 86.07 ▼7.07 |
Add New Post /wp-admin/post-new.php | 1,714 ▲31 | 18.40 ▼0.02 | 386.65 ▼24.59 | 114.97 ▲1.17 |
Media Library /wp-admin/upload.php | 1,859 ▲52 | 5.02 ▲0.02 | 163.15 ▲2.07 | 120.39 ▼2.25 |
Log /wp-admin/admin.php?page=mediafromftp-log | 1,294 | 2.44 | 64.20 | 39.84 |
Media from FTP /wp-admin/admin.php?page=mediafromftp | 1,252 | 2.55 | 65.70 | 35.64 |
Add-Ons /wp-admin/admin.php?page=mediafromftp-addons | 1,431 | 2.56 | 66.35 | 31.84 |
Settings /wp-admin/admin.php?page=mediafromftp-settings | 3,326 | 2.88 | 93.44 | 46.91 |
Search & Register /wp-admin/admin.php?page=mediafromftp-search-register | 2,121 | 2.46 | 64.86 | 41.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/media-from-ftp/uninstall.php+88
rmdir(wp-content/uploads/media-from-ftp-tmp): Directory not empty
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/media-from-ftp/req/class-tt-mediafromftp-list-table.php on line 26
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-screen.php): failed to open stream: No such file or directory in wp-content/plugins/media-from-ftp/req/class-tt-mediafromftp-list-table.php on line 26
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-screen.php' (include_path='.:/usr/share/php') in wp-content/plugins/media-from-ftp/req/class-tt-mediafromftp-list-table.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/media-from-ftp/req/class-mediafromftpajax.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/media-from-ftp/req/class-mediafromftpadmin.php:100
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/media-from-ftp/req/class-mediafromftpregist.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-from-ftp/mediafromftp.php:32
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: sync, files, ftp, uploads, media...
media-from-ftp/mediafromftp.php 92% from 13 tests
"Media from FTP" version 11.14's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("media-from-ftp.php" instead of "mediafromftp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected5,430 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 497 | 840 | 3,482 |
JavaScript | 4 | 194 | 90 | 1,548 |
CSS | 4 | 27 | 2 | 400 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 111.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 238.00 |
Average method complexity | 9.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 50 | 78.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 21.88% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.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
No PNG images were found in this plugin