Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.28MB] [CPU: ▼3.38ms] Passed 4 tests
An overview of server-side resources used by SV Media Library
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.72 ▲1.26 | 46.61 ▲7.18 |
Dashboard /wp-admin | 4.60 ▲1.26 | 50.08 ▼9.03 |
Posts /wp-admin/edit.php | 4.65 ▲1.30 | 50.58 ▲1.45 |
Add New Post /wp-admin/post-new.php | 7.20 ▲1.32 | 87.89 ▼13.11 |
Media Library /wp-admin/upload.php | 4.52 ▲1.30 | 46.66 ▲14.08 |
Info /wp-admin/admin.php?page=straightvisions | 4.52 | 43.23 |
SV Media Library /wp-admin/admin.php?page=sv_media_library | 4.47 | 43.08 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 165 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
sv_media_library_scripts_settings_flush_css_cache |
sv_media_library_scripts_settings_sv_core_color_picker_attached |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by SV Media Library
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,934 ▲188 | 14.75 ▲0.38 | 1.72 ▲0.14 | 41.33 ▼0.53 |
Dashboard /wp-admin | 2,341 ▲150 | 5.86 ▼0.04 | 98.43 ▼0.24 | 80.37 ▲39.26 |
Posts /wp-admin/edit.php | 2,224 ▲153 | 2.04 ▲0.01 | 33.74 ▼2.87 | 34.94 ▼0.53 |
Add New Post /wp-admin/post-new.php | 1,666 ▲152 | 23.60 ▲6.00 | 723.96 ▲74.80 | 36.03 ▼15.44 |
Media Library /wp-admin/upload.php | 1,514 ▲126 | 4.30 ▲0.09 | 98.91 ▲5.29 | 44.35 ▲3.85 |
Info /wp-admin/admin.php?page=straightvisions | 1,644 | 10.59 | 205.34 | 153.21 |
SV Media Library /wp-admin/admin.php?page=sv_media_library | 1,465 | 10.61 | 73.58 | 116.17 |
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
- The uninstall procedure has failed, leaving 8 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- sv_media_library_scripts_settings_flush_css_cache
- sv_media_library_scripts_settings_sv_core_color_picker_attached
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sv-media-library/lib/core_plugin/core/settings/tpl/setting_checkbox_field.php
- 236× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: props in wp-content/plugins/sv-media-library/lib/core_plugin/core/settings/tpl/setting_email.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sv-media-library/lib/core_plugin/core/info/backend/tpl/about.php:2
- > PHP Notice
Undefined variable: props in wp-content/plugins/sv-media-library/lib/core_plugin/core/settings/tpl/setting_box_shadow_tpl/vertical_length.php on line 1
- > PHP Notice
Undefined variable: props in wp-content/plugins/sv-media-library/lib/core_plugin/core/settings/tpl/setting_text.php on line 6
- > PHP Notice
Undefined variable: props in wp-content/plugins/sv-media-library/lib/core_plugin/core/settings/tpl/setting_box_shadow_tpl/horizontal_length.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sv-media-library/lib/core_plugin/core/settings/tpl/setting_password.php:9
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sv-media-library/lib/core_plugin/core/settings/tpl/setting_border.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_textarea() in wp-content/plugins/sv-media-library/lib/core_plugin/core/settings/tpl/setting_textarea.php:11
- > PHP Notice
Undefined variable: props in wp-content/plugins/sv-media-library/lib/core_plugin/core/settings/tpl/setting_upload.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sv-media-library/lib/core_plugin/core/settings/tpl/setting_checkbox_field.php on line 20
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Add a description for screenshot #1 in sv-media-library/assets to your readme.txt
sv-media-library/sv_media_library.php 85% from 13 tests
The entry point to "SV Media Library" version 2.0.00 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("sv-media-library.php" instead of "sv_media_library.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin9,436 lines of code in 139 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 92 | 1,006 | 1,323 | 4,845 |
CSS | 28 | 288 | 89 | 2,837 |
JavaScript | 13 | 186 | 85 | 681 |
SVG | 2 | 0 | 0 | 585 |
PO File | 2 | 272 | 384 | 486 |
Markdown | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 18.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 1 | 2.70% |
▷ Concrete classes | 36 | 97.30% |
▷ Final classes | 0 | 0.00% |
Methods | 429 | |
▷ Static methods | 8 | 1.86% |
▷ Public methods | 381 | 88.81% |
▷ Protected methods | 26 | 6.06% |
▷ Private methods | 22 | 5.13% |
Functions | 20 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 20 | 100.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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