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.02MB] [CPU: ▼148.46ms] Passed 4 tests
Server-side resources used by Fix Media Library
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 42.96 ▲16.93 |
Dashboard /wp-admin | 3.08 ▲0.03 | 57.48 ▼13.19 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 51.30 ▲2.70 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 86.69 ▼580.80 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 28.31 ▼2.55 |
Fix Media Library /wp-admin/tools.php?page=wow_media_library_fix | 2.94 | 21.53 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fix Media Library
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲136 | 15.88 ▼0.05 | 9.75 ▼0.03 | 50.38 ▼18.77 |
Dashboard /wp-admin | 2,975 ▲44 | 5.92 ▼0.06 | 160.95 ▼51.07 | 125.87 ▼10.71 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▲0.02 | 79.23 ▼6.53 | 122.11 ▲1.84 |
Add New Post /wp-admin/post-new.php | 1,686 ▲105 | 18.09 ▼1.80 | 369.81 ▼42.56 | 131.58 ▲14.32 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▲0.01 | 160.30 ▼18.12 | 138.15 ▲3.24 |
Fix Media Library /wp-admin/tools.php?page=wow_media_library_fix | 1,482 | 2.35 | 64.18 | 87.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/wow-media-library-fix/Activation.php+13
unlink(wp-content/uploads/media-library.log): No such file or directory
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=wow_media_library_fix
- > User notice in wp-includes/functions.php+5663
WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function WowMediaLibraryFix\\wp_nonce_field() in wp-content/plugins/wow-media-library-fix/AdminPage_View.php:13
- > PHP Notice
Undefined variable: messages in wp-content/plugins/wow-media-library-fix/AdminPage_View.php on line 9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: thumbnails, clean, thumbnail, attachments, post thumbnail...
wow-media-library-fix/wow-media-library-fix.php Passed 13 tests
The main file in "Fix Media Library" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
19 characters long description:
Fixes Media Library
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,732 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 428 | 75 | 1,548 |
JavaScript | 1 | 54 | 0 | 168 |
CSS | 1 | 2 | 0 | 16 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 15.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 33 | 53.23% |
▷ Public methods | 51 | 82.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 17.74% |
Functions | 1 | |
▷ Named functions | 1 | 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
No PNG files were detected