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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.46ms] Passed 4 tests
This is a short check of server-side resources used by Rocket Media Library Mime Type
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 41.83 ▼2.70 |
Dashboard /wp-admin | 3.43 ▲0.13 | 51.95 ▼6.27 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 53.86 ▲2.61 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 96.93 ▼7.46 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 41.06 ▲4.42 |
업로드 파일 타입 /wp-admin/options-general.php?page=rocket-media-library-mime-type-setting | 3.38 | 35.84 |
Server storage [IO: ▲1.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
rocket_media_library_mime_type |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Rocket Media Library Mime Type
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲105 | 14.40 ▼0.19 | 1.87 ▲0.01 | 43.06 ▼0.81 |
Dashboard /wp-admin | 2,247 ▲70 | 5.75 ▲0.20 | 98.50 ▼1.04 | 44.46 ▼4.29 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 2.33 ▲0.32 | 48.24 ▲0.07 | 41.95 ▲2.42 |
Add New Post /wp-admin/post-new.php | 1,541 ▲9 | 23.42 ▲0.32 | 678.42 ▲35.98 | 68.52 ▲13.04 |
Media Library /wp-admin/upload.php | 1,510 ▲110 | 4.38 ▲0.17 | 109.65 ▲8.21 | 54.80 ▲11.01 |
업로드 파일 타입 /wp-admin/options-general.php?page=rocket-media-library-mime-type-setting | 2,531 | 2.93 | 69.46 | 164.39 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- rocket_media_library_mime_type
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function rocket_media_library_mime_type\\plugin_dir_path() in wp-content/plugins/rocket-media-library-mime-type/rocket-media-library-mime-type.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/rocket-media-library-mime-type/assets/templates/admin/setting.php:93
- > PHP Fatal error
Uncaught Error: Class 'rocket_media_library_mime_type\\Feature' not found in wp-content/plugins/rocket-media-library-mime-type/features/admin/setting.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: wordpress korean media library upload file type, rocket upload file type, rocket media
rocket-media-library-mime-type/rocket-media-library-mime-type.php 69% from 13 tests
Analyzing the main PHP file in "Rocket Media Library Mime Type" version 2.1.0
You should first fix the following items:
- Text Domain: The text domain should only use lowercase characters and dashes
- Domain Path: Prefix the domain path with a forward slash character ("/languages/")
- Description: Please keep the plugin description shorter than 140 characters (currently 169 characters long)
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin790 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 188 | 149 | 790 |
JavaScript | 1 | 1 | 0 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 17 | 36.96% |
▷ Public methods | 43 | 93.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.52% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 1.13MB with 0.67MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/Screenshot-4.png | 197.02KB | 62.01KB | ▼ 68.52% |
assets/images/Screenshot-2.png | 10.53KB | 4.63KB | ▼ 56.00% |
assets/images/Screenshot-3.png | 53.57KB | 25.04KB | ▼ 53.26% |
assets/images/Screenshot-6.png | 422.23KB | 149.05KB | ▼ 64.70% |
assets/images/Screenshot-1.png | 54.00KB | 25.21KB | ▼ 53.31% |