Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.08ms] Passed 4 tests
Analyzing server-side resources used by Organize Media Folder
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 34.26 ▼3.54 |
Dashboard /wp-admin | 3.37 ▲0.07 | 43.73 ▼3.69 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 44.01 ▼0.92 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 92.17 ▼4.17 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.87 ▲4.97 |
Folder Management /wp-admin/upload.php?page=organizemediafolder | 3.27 | 31.17 |
Server storage [IO: ▲0.16MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
omf_admin |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Organize Media Folder
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 14.10 ▼0.46 | 1.92 ▲0.23 | 36.47 ▼0.26 |
Dashboard /wp-admin | 2,210 ▲29 | 5.52 ▼0.23 | 86.20 ▼12.37 | 38.13 ▼6.36 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.02 ▼0.01 | 38.03 ▲3.67 | 31.74 ▼3.29 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.10 ▼0.18 | 627.98 ▼69.15 | 32.87 ▼17.69 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.16 ▼0.05 | 97.49 ▲2.35 | 41.63 ▼1.72 |
Folder Management /wp-admin/upload.php?page=organizemediafolder | 930 | 2.21 | 26.05 | 24.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-screen.php' (include_path='.:/usr/share/php') in wp-content/plugins/organize-media-folder/lib/class-tt-organizemediafolder-list-table.php on line 26
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-screen.php): failed to open stream: No such file or directory in wp-content/plugins/organize-media-folder/lib/class-tt-organizemediafolder-list-table.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/organize-media-folder/lib/class-organizemediafolder.php:60
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/organize-media-folder/lib/class-organizemediafolderadmin.php:69
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/organize-media-folder/lib/class-organizemediafolder.php:60
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/organize-media-folder/lib/class-tt-organizemediafolder-list-table.php on line 26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: directories, admin, media, media library, folders
organize-media-folder/organizemediafolder.php 92% from 13 tests
This is the main PHP file of "Organize Media Folder" version 1.34, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("organize-media-folder.php" instead of "organizemediafolder.php")
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
There were no executable files found in this plugin3,550 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 242 | 538 | 1,891 |
JavaScript | 5 | 192 | 116 | 1,362 |
CSS | 1 | 8 | 1 | 297 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 76.67 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 5.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 87.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 12.77% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin