Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼8.19ms] Passed 4 tests
A check of server-side resources used by MediaTypes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.95 ▼10.80 |
Dashboard /wp-admin | 3.37 ▲0.06 | 50.17 ▼9.06 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 51.44 ▲2.18 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 95.48 ▼14.06 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 37.45 ▲1.15 |
MediaTypes /wp-admin/options-general.php?page=mediatypes | 3.25 | 36.07 |
Server storage [IO: ▲0.03MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
mediatypes_options_acc |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
mediatypes_options_sel |
Browser metrics Passed 4 tests
MediaTypes: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.72 ▲0.37 | 1.69 ▼0.13 | 41.88 ▼0.65 |
Dashboard /wp-admin | 2,206 ▲26 | 5.62 ▲0.01 | 92.79 ▲1.88 | 41.34 ▼4.10 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.10 ▲0.11 | 38.75 ▲1.98 | 37.41 ▲1.75 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.03 ▼0.01 | 624.97 ▼40.49 | 47.84 ▼11.66 |
Media Library /wp-admin/upload.php | 1,405 ▲14 | 4.20 ▲0.01 | 99.06 ▼4.24 | 44.08 ▼1.68 |
MediaTypes /wp-admin/options-general.php?page=mediatypes | 828 | 2.02 | 24.92 | 31.44 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: attachments, file-types, uploads, media
mediatypes/mediatypes.php Passed 13 tests
"MediaTypes" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
49 characters long description:
Easily manage WordPress media library file types.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected354 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 53 | 39 | 280 |
CSS | 1 | 12 | 0 | 66 |
JavaScript | 1 | 0 | 0 | 8 |
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.39 |
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 | 17 | |
▷ Named functions | 15 | 88.24% |
▷ Anonymous functions | 2 | 11.76% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin