Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.64ms] Passed 4 tests
A check of server-side resources used by WPFTP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.75 ▼0.30 |
Dashboard /wp-admin | 3.37 ▲0.03 | 50.27 ▼16.39 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 56.11 ▲6.75 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 128.96 ▲28.38 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 40.16 ▲3.39 |
Server storage [IO: ▲1.72MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
wpftp_options |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WPFTP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲50 | 14.64 ▲0.08 | 1.56 ▼0.15 | 40.60 ▼3.01 |
Dashboard /wp-admin | 2,217 ▲37 | 5.65 ▲0.02 | 91.42 ▼7.16 | 42.86 ▲0.66 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.12 ▲0.18 | 38.40 ▲1.24 | 40.18 ▲5.87 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 22.56 ▼0.55 | 628.64 ▼63.31 | 57.31 ▼0.14 |
Media Library /wp-admin/upload.php | 1,422 ▲19 | 4.23 ▲0.04 | 97.69 ▼8.53 | 41.87 ▼6.80 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpftp/actions.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpftp/actions.php:6
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: ftp, wordpress ftp, wordpress
wpftp/index.php 85% from 13 tests
"WPFTP" version 4.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpftp.php" instead of "index.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 156 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected660 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 86 | 96 | 450 |
SVG | 1 | 356 | 3 | 195 |
JavaScript | 6 | 0 | 5 | 9 |
CSS | 6 | 0 | 4 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 1 | 16.67% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
6 PNG files occupy 0.22MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
layui/css/modules/layer/default/icon.png | 11.22KB | 4.36KB | ▼ 61.19% |
layui/css/modules/layer/default/icon-ext.png | 5.77KB | 2.91KB | ▼ 49.62% |
layui/images/footer_logo.png | 24.87KB | 0.95KB | ▼ 96.18% |
layui/images/qrcode.png | 72.54KB | 12.37KB | ▼ 82.94% |
layui/images/logo.png | 24.44KB | 0.95KB | ▼ 96.10% |