Benchmarks
Plugin footprint 83% from 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.01MB] [CPU: ▲1.72ms] Passed 4 tests
An overview of server-side resources used by Media Organiser
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.52 ▼0.32 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.39 ▼0.39 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.63 ▲4.15 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.50 ▲3.43 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.94 ▲4.31 |
Media Organiser /wp-admin/upload.php?page=mocd_submenu | 3.21 | 31.82 |
Media Organiser /wp-admin/options-general.php?page=mocd_settings_submenu | 3.21 | 32.62 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Media Organiser
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲51 | 13.56 ▼1.02 | 1.76 ▼0.27 | 44.46 ▼1.66 |
Dashboard /wp-admin | 2,214 ▲23 | 4.84 ▼0.04 | 106.19 ▼3.57 | 43.23 ▼5.45 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 1.99 ▼0.04 | 39.64 ▲2.64 | 35.50 ▲2.20 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.20 ▼0.29 | 659.16 ▼17.86 | 57.47 ▲4.26 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.59 ▲0.38 | 115.13 ▲2.51 | 43.00 ▼6.18 |
Media Organiser /wp-admin/upload.php?page=mocd_submenu | 1,122 | 2.71 | 71.30 | 31.98 |
Media Organiser /wp-admin/options-general.php?page=mocd_settings_submenu | 810 | 2.03 | 24.86 | 25.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function media_organiser_cd\\add_action() in wp-content/plugins/media-organiser/relocator_ajax.php:707
- > PHP Fatal error
Uncaught Error: Call to undefined function media_organiser_cd\\site_url() in wp-content/plugins/media-organiser/functions.php:47
- > PHP Warning
Use of undefined constant NS - assumed 'NS' (this will throw an Error in a future version of PHP) in wp-content/plugins/media-organiser/debug.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function media_organiser_cd\\add_action() in wp-content/plugins/media-organiser/common.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function media_organiser_cd\\plugin_dir_path() in wp-content/plugins/media-organiser/media-organiser.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
media-organiser/media-organiser.php Passed 13 tests
The principal PHP file in "Media Organiser" v. 0.1.6 is loaded by WordPress automatically on each request
67 characters long description:
Allows media items (i.e. attachments) to be organised into folders.
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
There were no executable files found in this plugin1,926 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 148 | 427 | 759 |
JavaScript | 1 | 64 | 203 | 574 |
SVG | 1 | 1 | 1 | 483 |
CSS | 1 | 31 | 71 | 110 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 1 | |
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 | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
37 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/orig/file.png | 1.22KB | 0.56KB | ▼ 54.12% |
images/orig/left.png | 0.51KB | 0.36KB | ▼ 29.28% |
images/document-6x.png | 0.27KB | 0.17KB | ▼ 35.61% |
images/left.png | 0.34KB | 0.19KB | ▼ 45.30% |
images/arrow-thick-right-6x.png | 0.39KB | 0.41KB | 0.00% |