Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.68MB] [CPU: ▼294.37ms] Passed 4 tests
An overview of server-side resources used by Media with FTP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.44 | 57.93 ▲5.87 |
Dashboard /wp-admin | 4.20 ▲0.79 | 39.19 ▲3.66 |
Posts /wp-admin/edit.php | 4.39 ▲0.75 | 42.56 ▲4.85 |
Add New Post /wp-admin/post-new.php | 7.71 ▲0.74 | 99.90 ▼1,187.81 |
Media Library /wp-admin/upload.php | 4.14 ▲0.85 | 27.68 ▲1.83 |
Media with FTP /wp-admin/options-general.php?page=mwf_options | 4.37 | 28.44 |
Server storage [IO: ▲1.73MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 193 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Media with FTP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,894 ▲140 | 16.35 ▲0.36 | 9.41 ▲3.17 | 2.51 ▼0.10 |
Dashboard /wp-admin | 2,914 ▲56 | 6.19 ▲0.01 | 119.87 ▼11.59 | 151.91 ▼6.82 |
Posts /wp-admin/edit.php | 2,713 ▲19 | 3.26 ▲0.03 | 65.07 ▲0.32 | 142.66 ▼1.80 |
Add New Post /wp-admin/post-new.php | 1,687 ▼24 | 20.20 ▼0.79 | 392.40 ▼83.91 | 157.27 ▲0.88 |
Media Library /wp-admin/upload.php | 1,718 ▲26 | 5.57 ▲0.06 | 138.76 ▼7.11 | 186.97 ▲3.18 |
Media with FTP /wp-admin/options-general.php?page=mwf_options | 1,168 | 2.65 | 59.22 | 100.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/media-with-ftp/vendor/cmb2/cmb2/apigen/hook-docs.php
- > /wp-content/plugins/media-with-ftp/public/partials/media-with-ftp-public-display.php
- > /wp-content/plugins/media-with-ftp/admin/partials/media-with-ftp-admin-display.php
- 41× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/media-with-ftp/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Time.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/media-with-ftp/vendor/cmb2/cmb2/includes/types/CMB2_Type_Title.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/media-with-ftp/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/media-with-ftp/vendor/cmb2/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Warning
file_get_contents(/Users/JT/Sites/wpengine/api/tree.html): failed to open stream: No such file or directory in wp-content/plugins/media-with-ftp/vendor/cmb2/cmb2/apigen/hook-docs.php on line 221
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/media-with-ftp/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/media-with-ftp/vendor/cmb2/cmb2/includes/types/CMB2_Type_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/media-with-ftp/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Warning
file_put_contents(/Users/JT/Sites/wpengine/api/hook-docs.html): failed to open stream: No such file or directory in wp-content/plugins/media-with-ftp/vendor/cmb2/cmb2/apigen/hook-docs.php on line 229
- > PHP Fatal error
Uncaught Error: Class 'CMB2_hookup' not found in wp-content/plugins/media-with-ftp/vendor/cmb2/cmb2/includes/CMB2_Options_Hookup.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== media-with-ftp ===
) - Contributors: Contributors not specified
media-with-ftp/media-with-ftp.php Passed 13 tests
The main PHP file in "Media with FTP" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
92 characters long description:
Let's you upload images to ftp-server and remove the uploads in the WordPress Media Library.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin21,363 lines of code in 130 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 75 | 2,336 | 6,828 | 7,756 |
CSS | 16 | 1,272 | 1,172 | 5,101 |
JSON | 3 | 0 | 0 | 3,558 |
JavaScript | 14 | 473 | 701 | 2,437 |
Sass | 16 | 300 | 25 | 1,379 |
Markdown | 4 | 233 | 0 | 702 |
PO File | 2 | 173 | 226 | 430 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 17.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 77 | |
▷ Abstract classes | 8 | 10.39% |
▷ Concrete classes | 69 | 89.61% |
▷ Final classes | 0 | 0.00% |
Methods | 575 | |
▷ Static methods | 95 | 16.52% |
▷ Public methods | 475 | 82.61% |
▷ Protected methods | 89 | 15.48% |
▷ Private methods | 11 | 1.91% |
Functions | 40 | |
▷ Named functions | 39 | 97.50% |
▷ Anonymous functions | 1 | 2.50% |
Constants | 10 | |
▷ Global constants | 4 | 40.00% |
▷ Class constants | 6 | 60.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
22 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
vendor/cmb2/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
vendor/cmb2/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/tree-last.png | 0.17KB | 0.11KB | ▼ 36.05% |