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.02MB] [CPU: ▼3.92ms] Passed 4 tests
A check of server-side resources used by Kontainer File Picker
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 37.53 ▼1.39 |
Dashboard /wp-admin | 3.34 ▼0.01 | 45.39 ▼11.28 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.47 ▲4.41 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.07 ▼4.10 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.59 ▲1.08 |
Kontainer /wp-admin/options-general.php?page=kontainer | 3.23 | 31.15 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Kontainer File Picker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.25 ▼0.11 | 1.78 ▲0.05 | 38.43 ▼4.35 |
Dashboard /wp-admin | 2,209 ▲29 | 5.65 ▼0.00 | 90.87 ▼3.10 | 37.21 ▼6.36 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.05 ▲0.03 | 41.20 ▲3.69 | 37.42 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,536 ▲7 | 23.49 ▲0.34 | 668.37 ▲11.99 | 55.48 ▼3.07 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.25 ▲0.01 | 94.18 ▼12.14 | 43.14 ▼3.83 |
Kontainer /wp-admin/options-general.php?page=kontainer | 802 | 2.04 | 26.49 | 26.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kontainer-file-picker/inc/settings.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kontainer-file-picker/inc/settings.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: media, assets, dam
kontainer-file-picker/kontainer.php 77% from 13 tests
The main file in "Kontainer File Picker" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires PHP: The required version number must match the one declared in readme.txt ("7.4" instead of "7.2")
- Main file name: The principal plugin file should be the same as the plugin slug ("kontainer-file-picker.php" instead of "kontainer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin261 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 38 | 24 | 118 |
JavaScript | 1 | 37 | 7 | 106 |
CSS | 1 | 4 | 0 | 37 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
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 | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin