Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/simple-ftp-directory-lister/simple-ftp-directory-lister.php+25
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.96MB] [CPU: ▼61.18ms] Passed 4 tests
A check of server-side resources used by Simple FTP Directory Lister
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.54 ▼41.06 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.46 ▼49.72 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 4.69 ▼49.16 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.43 ▼104.76 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.34 ▼28.50 |
Simple FTP Directory Lister Settings /wp-admin/options-general.php?page=sfdl-admin | 2.05 | 6.02 |
Server storage [IO: ▲0.44MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple FTP Directory Lister
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.28 ▲0.02 | 1.66 ▼0.18 | 44.36 ▼0.90 |
Dashboard /wp-admin | 2,199 ▲19 | 5.57 ▼0.03 | 87.40 ▼4.07 | 38.97 ▲1.45 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.02 | 37.48 ▼3.67 | 35.96 ▲4.37 |
Add New Post /wp-admin/post-new.php | 1,531 ▼0 | 22.89 ▼0.18 | 638.35 ▲2.28 | 53.52 ▼19.21 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.16 ▼0.06 | 103.51 ▼2.59 | 44.22 ▲0.44 |
Simple FTP Directory Lister Settings /wp-admin/options-general.php?page=sfdl-admin | 952 | 2.01 | 30.28 | 39.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/simple-ftp-directory-lister/simple-ftp-directory-lister.php+25
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=sfdl-admin
- > Notice in wp-content/plugins/simple-ftp-directory-lister/simple-ftp-directory-lister.php+29
Trying to access array offset on value of type bool
SRP 50% 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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/simple-ftp-directory-lister/assets/sfdl-options.php:346
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/simple-ftp-directory-lister/assets/sfdl-options.php:346
- > 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 87% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== simple-ftp-directory-lister ===
) - Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in simple-ftp-directory-lister/assets to your readme.txt
simple-ftp-directory-lister/simple-ftp-directory-lister.php 85% from 13 tests
This is the main PHP file of "Simple FTP Directory Lister" version 1.4.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.1" instead of "5.2")
- Text Domain: Please use dashes and lowercase characters for text domains
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 detected7,727 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 2,013 | 1,828 | 6,921 |
PHP | 2 | 109 | 65 | 439 |
CSS | 5 | 68 | 6 | 367 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin