Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/king-ftp/king_ftp.php+625
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.75MB] [CPU: ▼54.08ms] Passed 4 tests
Analyzing server-side resources used by king_ftp
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.24 ▼1.23 | 5.97 ▼41.62 |
Dashboard /wp-admin | 2.26 ▼1.05 | 6.76 ▼41.29 |
Posts /wp-admin/edit.php | 2.26 ▼1.10 | 6.83 ▼45.17 |
Add New Post /wp-admin/post-new.php | 2.26 ▼3.63 | 6.18 ▼88.25 |
Media Library /wp-admin/upload.php | 2.26 ▼0.97 | 5.19 ▼27.79 |
king ftp /wp-admin/plugins.php?page=king_ftp_option_menu | 2.27 | 6.08 |
Server storage [IO: ▲1.69MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for king_ftp
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲177 | 13.57 ▼0.80 | 8.81 ▲7.08 | 43.34 ▼3.78 |
Dashboard /wp-admin | 2,215 ▲27 | 5.83 ▲0.96 | 99.57 ▼6.12 | 38.35 ▼3.25 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.02 ▲0.01 | 34.69 ▼9.91 | 32.48 ▼2.16 |
Add New Post /wp-admin/post-new.php | 1,522 ▲8 | 17.74 ▼0.02 | 642.26 ▼58.20 | 60.70 ▲5.08 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.25 ▲0.04 | 97.50 ▼21.24 | 45.23 ▼2.84 |
king ftp /wp-admin/plugins.php?page=king_ftp_option_menu | 813 | 1.73 | 24.83 | 24.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/king-ftp/king_ftp.php+625
Array and string offset access syntax with curly braces is deprecated
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=king_ftp_option_menu
- > Deprecated in wp-content/plugins/king-ftp/king_ftp.php+627
Array and string offset access syntax with curly braces is deprecated
- > GET request to /wp-admin/plugins.php?page=king_ftp_option_menu
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/plugins.php?page=king_ftp_option_menu
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ajax-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: upload, ftp, upload ftp file
king-ftp/king_ftp.php 85% from 13 tests
"king_ftp" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: It is recommended to name the main PHP file as the plugin slug ("king-ftp.php" instead of "king_ftp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin6,293 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 54 | 21 | 2,849 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 1 | 193 | 42 | 508 |
PO File | 1 | 59 | 63 | 143 |
JavaScript | 1 | 32 | 16 | 122 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
47 PNG files occupy 0.53MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
png/doc.png | 12.39KB | 6.35KB | ▼ 48.73% |
png/psd.png | 12.48KB | 6.54KB | ▼ 47.64% |
png/xls.png | 8.07KB | 4.28KB | ▼ 46.97% |
png/024-audition.png | 12.60KB | 6.44KB | ▼ 48.86% |
png/apk.png | 7.07KB | 7.05KB | 0.28% |