Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.66MB] [CPU: ▼19.48ms] Passed 4 tests
Analyzing server-side resources used by Snvk Gallery Metabox
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 37.69 ▼3.37 |
Dashboard /wp-admin | 3.38 ▲0.03 | 49.79 ▼3.01 |
Posts /wp-admin/edit.php | 3.43 ▲0.03 | 50.91 ▼2.36 |
Add New Post /wp-admin/post-new.php | 3.22 ▼2.70 | 36.12 ▼69.19 |
Media Library /wp-admin/upload.php | 3.30 ▲0.03 | 36.60 ▼1.00 |
Snvk Media Gallery /wp-admin/admin.php?page=snv-media-gallery | 3.26 | 32.89 |
Setting /wp-admin/admin.php?page=snv-media-setting | 3.24 | 33.96 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Snvk Gallery Metabox
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲52 | 14.34 ▼0.19 | 1.68 ▼0.23 | 41.61 ▼3.97 |
Dashboard /wp-admin | 2,207 ▲30 | 5.56 ▼0.04 | 86.11 ▼9.41 | 77.61 ▲33.34 |
Posts /wp-admin/edit.php | 2,124 ▲21 | 2.00 ▲0.04 | 33.66 ▼10.36 | 31.78 ▼5.36 |
Add New Post /wp-admin/post-new.php | 6,256 ▲4,730 | 26.05 ▲2.53 | 1,011.98 ▲368.41 | 58.06 ▲8.54 |
Media Library /wp-admin/upload.php | 1,424 ▲27 | 4.08 ▼0.32 | 100.15 ▼7.14 | 78.28 ▲31.10 |
Snvk Media Gallery /wp-admin/admin.php?page=snv-media-gallery | 867 | 2.29 | 25.50 | 27.76 |
Setting /wp-admin/admin.php?page=snv-media-setting | 1,014 | 2.00 | 22.09 | 28.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=snv-media-setting
- > Notice in wp-content/plugins/snvk-media-gallery/snvk-media-gallery.php+68
Undefined variable: return
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_stylesheet_directory_uri() in wp-content/plugins/snvk-media-gallery/config.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_stylesheet_directory_uri() in wp-content/plugins/snvk-media-gallery/config.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snvk-media-gallery/snvk-media-meta.php:69
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/snvk-media-gallery/snvk-media-setting.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Screenshots: A description for screenshot #4 is missing in snvk-media-gallery/assets to your readme.txt
snvk-media-gallery/snvk-media-gallery.php Passed 13 tests
The main file in "Snvk Gallery Metabox" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
84 characters long description:
Media Video gallery metabox for pages , custom post type with drag and drop feature.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin279 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 83 | 26 | 173 |
CSS | 1 | 11 | 0 | 70 |
JavaScript | 1 | 14 | 5 | 36 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 0 | |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/snvk-gallery.png | 1.08KB | 0.94KB | ▼ 12.41% |