Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼8.92ms] Passed 4 tests
An overview of server-side resources used by Custom Upload Folders Plus
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.14 ▼4.22 |
Dashboard /wp-admin | 3.40 ▲0.05 | 53.42 ▼15.96 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.48 ▼6.61 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 82.51 ▼8.87 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.02 ▲3.39 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Custom Upload Folders Plus: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.46 | 1.65 ▼0.16 | 41.97 ▼1.78 |
Dashboard /wp-admin | 2,203 ▲15 | 5.89 ▲1.03 | 104.61 ▼12.45 | 43.26 ▲0.11 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.02 | 36.03 ▼1.33 | 34.22 ▲2.47 |
Add New Post /wp-admin/post-new.php | 1,514 ▼23 | 17.63 ▼5.49 | 635.27 ▲13.13 | 59.77 ▲1.66 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.17 ▲0.01 | 98.17 ▼4.17 | 40.62 ▼4.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/custom-upload-folders-plus/custom-upload-folders-plus.php:59
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
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
4 plugin tags: media, upload, custom upload folders, folder
custom-upload-folders-plus/custom-upload-folders-plus.php 77% from 13 tests
This is the main PHP file of "Custom Upload Folders Plus" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Domain Path: The domain path folder was not found ("/languages/")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Git Repository: Please remove the Git repository from this plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected4,174 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 630 | 396 | 2,764 |
CSS | 4 | 183 | 153 | 934 |
PHP | 2 | 155 | 139 | 451 |
Markdown | 1 | 8 | 0 | 25 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 49.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
5 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
assets/screenshot-1.png | 37.19KB | 14.57KB | ▼ 60.81% |
images/cancel-circle.png | 0.31KB | 0.19KB | ▼ 39.69% |
assets/screenshot-2.png | 20.61KB | 10.55KB | ▼ 48.78% |
images/select2.png | 0.60KB | 0.99KB | 0.00% |