Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.27ms] Passed 4 tests
A check of server-side resources used by Filestack
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 44.18 ▲6.02 |
Dashboard /wp-admin | 3.36 ▲0.02 | 43.14 ▼15.22 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 49.56 ▲5.56 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 79.79 ▼12.42 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.00 ▲1.02 |
Filestack /wp-admin/options-general.php?page=filepicker | 3.28 | 29.40 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Filestack
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,977 ▲227 | 14.43 ▼0.14 | 19.43 ▲17.90 | 38.83 ▼3.09 |
Dashboard /wp-admin | 2,260 ▲83 | 5.42 ▼0.20 | 102.40 ▲15.27 | 36.68 ▼3.21 |
Posts /wp-admin/edit.php | 2,171 ▲71 | 2.78 ▲0.76 | 46.92 ▲10.08 | 33.63 ▼1.52 |
Add New Post /wp-admin/post-new.php | 1,578 ▲49 | 23.40 ▲0.05 | 689.73 ▲4.72 | 36.49 ▼16.74 |
Media Library /wp-admin/upload.php | 1,471 ▲77 | 4.92 ▲0.74 | 104.67 ▲7.04 | 39.55 ▼6.58 |
Filestack /wp-admin/options-general.php?page=filepicker | 1,254 | 2.35 | 49.71 | 42.81 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/filepicker-media-uploader/lib/filepicker_ajax.php:12
- > PHP Warning
require_once(FILEPICKER_PLUGIN_PATH/filepicker.php): failed to open stream: No such file or directory in wp-content/plugins/filepicker-media-uploader/lib/admin-options.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/filepicker-media-uploader/lib/admin_integration.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/filepicker-media-uploader/lib/languages.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/filepicker-media-uploader/lib/scripts.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/filepicker-media-uploader/filepicker.php:23
- > PHP Warning
Use of undefined constant FILEPICKER_PLUGIN_PATH - assumed 'FILEPICKER_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/filepicker-media-uploader/lib/admin-options.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'FILEPICKER_PLUGIN_PATH/filepicker.php' (include_path='.:/usr/share/php') in wp-content/plugins/filepicker-media-uploader/lib/admin-options.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/filepicker-media-uploader/lib/shortcodes.php:3
- > 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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Add a description for screenshot #2 in filepicker-media-uploader/assets to your readme.txt
filepicker-media-uploader/filepicker.php 85% from 13 tests
The entry point to "Filestack" version 2.0.8 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("filepicker-media-uploader.php" instead of "filepicker.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected644 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 70 | 76 | 389 |
JavaScript | 3 | 32 | 35 | 168 |
PO File | 3 | 15 | 24 | 87 |
CSS | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 4.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 10 | 83.33% |
▷ Anonymous functions | 2 | 16.67% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin