Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼302.01ms] Passed 4 tests
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.55 ▲0.04 | 54.45 ▲5.69 |
Dashboard /wp-admin | 3.45 ▲0.05 | 32.49 ▼1.13 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 35.67 ▼1.81 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 91.71 ▼1,203.51 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 22.69 ▼1.59 |
Add Custom Fields to Media Upload /wp-admin/options-general.php?page=thisismyurl_add_custom_media_fields | 3.27 | 21.71 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Add Custom Fields to Media: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,790 ▲68 | 15.78 ▲0.14 | 7.03 ▲1.14 | 2.38 ▼0.61 |
Dashboard /wp-admin | 2,893 ▲35 | 6.15 ▼0.00 | 113.90 ▼17.58 | 152.40 ▼5.79 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.23 ▼0.01 | 61.42 ▼2.96 | 139.17 ▼1.91 |
Add New Post /wp-admin/post-new.php | 1,664 ▲3 | 16.05 ▼0.15 | 409.22 ▼10.15 | 155.97 ▼6.67 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.50 ▼0.03 | 142.99 ▲2.18 | 180.10 ▼2.74 |
Add Custom Fields to Media Upload /wp-admin/options-general.php?page=thisismyurl_add_custom_media_fields | 1,108 | 2.43 | 56.81 | 151.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- 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
The main PHP script in "Add Custom Fields to Media" version 1.2.5 is automatically included on every request by WordPress
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
Good job! No executable or dangerous file extensions 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
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin