Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.64ms] Passed 4 tests
This is a short check of server-side resources used by Add Custom Fields to Media
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.32 ▼2.75 |
Dashboard /wp-admin | 3.34 ▼0.00 | 45.38 ▼12.16 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 47.06 ▼0.69 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 80.44 ▼18.97 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 31.67 ▼0.45 |
Add Custom Fields to Media Upload /wp-admin/options-general.php?page=thisismyurl_add_custom_media_fields | 3.21 | 29.35 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Add Custom Fields to Media
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.27 ▼1.01 | 1.68 ▼0.25 | 42.16 ▼2.11 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼0.98 | 104.82 ▲1.25 | 39.39 ▼6.71 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.03 | 39.51 ▼1.05 | 34.52 ▼3.72 |
Add New Post /wp-admin/post-new.php | 1,536 ▼0 | 23.22 ▼0.10 | 609.79 ▼1.50 | 53.74 ▼3.41 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.21 ▼0.06 | 99.40 ▼2.11 | 41.76 ▼3.44 |
Add Custom Fields to Media Upload /wp-admin/options-general.php?page=thisismyurl_add_custom_media_fields | 848 | 2.05 | 24.76 | 32.07 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=thisismyurl_add_custom_media_fields
- > Notice in wp-content/plugins/add-custom-fields-to-media/add-custom-fields-to-media.php+200
Undefined index: delete
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/add-custom-fields-to-media/add-custom-fields-to-media.php:106
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2 in add-custom-fields-to-media/assets to your readme.txt
add-custom-fields-to-media/add-custom-fields-to-media.php Passed 13 tests
"Add Custom Fields to Media" version 1.2.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
64 characters long description:
Allows users to add custem text fields to the media upload tool.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected151 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 70 | 93 | 151 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected