Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.22MB] [CPU: ▼294.09ms] Passed 4 tests
Analyzing server-side resources used by Organize Media Library by Folders
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.30 | 58.35 ▲12.36 |
Dashboard /wp-admin | 3.65 ▲0.24 | 34.69 ▲1.49 |
Posts /wp-admin/edit.php | 3.88 ▲0.23 | 39.74 ▲3.56 |
Add New Post /wp-admin/post-new.php | 7.11 ▲0.13 | 94.90 ▼1,191.42 |
Media Library /wp-admin/upload.php | 3.71 ▲0.41 | 35.23 ▲10.03 |
Folder Settings /wp-admin/upload.php?page=organizemedialibrary-settings | 3.49 | 27.31 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
oml_dirs |
Browser metrics Passed 4 tests
An overview of browser requirements for Organize Media Library by Folders
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,833 ▲111 | 15.88 ▲0.20 | 5.82 ▼0.33 | 2.66 ▲0.18 |
Dashboard /wp-admin | 2,930 ▲69 | 6.14 ▼0.04 | 116.94 ▼19.02 | 156.56 ▼4.33 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.23 ▲0.00 | 66.11 ▲1.78 | 143.50 ▲0.87 |
Add New Post /wp-admin/post-new.php | 1,711 ▼0 | 21.16 ▼0.38 | 436.52 ▼14.76 | 163.90 ▲2.85 |
Media Library /wp-admin/upload.php | 1,893 ▲195 | 5.87 ▲0.37 | 131.42 ▼11.60 | 188.32 ▲1.52 |
Folder Settings /wp-admin/upload.php?page=organizemedialibrary-settings | 1,803 | 2.74 | 58.11 | 121.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=organizemedialibrary-settings
- > Notice in wp-content/plugins/organize-media-library/lib/class-organizemedialibrary.php+410
Trying to get property 'name' of non-object
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
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/organize-media-library/lib/class-organizemedialibraryadmin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/organize-media-library/lib/class-organizemedialibrary.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/organize-media-library/lib/class-organizemedialibrary.php:58
- > 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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: admin, directories, media library, media, folders
organize-media-library/organizemedialibrary.php 92% from 13 tests
The primary PHP file in "Organize Media Library by Folders" version 7.26 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("organize-media-library.php" instead of "organizemedialibrary.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
Everything looks great! No dangerous files found in this plugin1,172 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 196 | 300 | 1,081 |
JavaScript | 3 | 10 | 58 | 91 |
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.36 |
Average class complexity | 72.50 |
▷ Minimum class complexity | 58.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 5.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 80.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 19.35% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin