Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.21MB] [CPU: ▼4.03ms] Passed 4 tests
An overview of server-side resources used by Pro Mime Types - Manage file media types
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 42.18 ▼0.03 |
Dashboard /wp-admin | 3.53 ▲0.22 | 58.13 ▲3.81 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 51.76 ▼4.54 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 95.65 ▼15.34 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 41.62 ▲5.90 |
Pro Mime Types /wp-admin/options-general.php?page=pro-mime-types | 3.49 | 35.23 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
pro_mime_types_settings |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Pro Mime Types - Manage file media types
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.34 ▲0.06 | 1.69 ▼0.26 | 42.83 ▲0.58 |
Dashboard /wp-admin | 2,202 ▲25 | 5.63 ▼0.02 | 94.11 ▲2.10 | 38.75 ▼3.22 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.04 ▲0.02 | 39.83 ▼0.63 | 37.29 ▼0.20 |
Add New Post /wp-admin/post-new.php | 1,529 ▼8 | 23.14 ▲4.79 | 648.52 ▲32.32 | 58.45 ▼3.79 |
Media Library /wp-admin/upload.php | 1,413 ▲19 | 4.18 ▼0.03 | 95.95 ▼5.51 | 44.75 ▲1.33 |
Pro Mime Types /wp-admin/options-general.php?page=pro-mime-types | 4,700 | 1.80 | 27.49 | 29.84 |
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 7 options in the database
- widget_recent-posts
- pro_mime_types_settings
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
pro-mime-types/promimetypes.php 92% from 13 tests
This is the main PHP file of "Pro Mime Types - Manage file media types" version 2.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("pro-mime-types.php" instead of "promimetypes.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,460 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 205 | 544 | 1,041 |
CSS | 2 | 48 | 31 | 283 |
JavaScript | 2 | 28 | 26 | 136 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
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 | 5 | |
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 | 23 | |
▷ Named functions | 22 | 95.65% |
▷ Anonymous functions | 1 | 4.35% |
Constants | 17 | |
▷ Global constants | 1 | 5.88% |
▷ Class constants | 16 | 94.12% |
▷ Public constants | 16 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin