Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼298.96ms] Passed 4 tests
An overview of server-side resources used by Advanced Custom Fields: Media Field
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 55.09 ▲3.01 |
Dashboard /wp-admin | 3.42 ▲0.01 | 33.57 ▼3.26 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 38.32 ▲2.04 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 91.54 ▼1,194.05 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 24.92 ▼0.58 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Custom Fields: Media Field
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,783 ▲61 | 15.98 ▲0.36 | 5.80 ▲0.21 | 2.30 ▼0.14 |
Dashboard /wp-admin | 2,895 ▲37 | 6.15 ▼0.07 | 116.21 ▼17.15 | 154.85 ▼8.43 |
Posts /wp-admin/edit.php | 2,691 ▲3 | 3.23 ▼0.01 | 62.67 ▼0.21 | 140.75 ▼3.80 |
Add New Post /wp-admin/post-new.php | 1,716 ▼44 | 21.09 ▲4.17 | 442.47 ▲21.65 | 169.70 ▲12.63 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.54 ▲0.08 | 146.12 ▲2.91 | 187.03 ▼5.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: field in wp-content/plugins/acf-media/fields/render_field.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_esc_attr_e() in wp-content/plugins/acf-media/fields/render_field.php:52
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acf-media/fields/render_field.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: acf
acf-media/acf-media.php Passed 13 tests
This is the main PHP file of "Advanced Custom Fields: Media Field" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
25 characters long description:
Creates Media field type.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin376 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 211 | 370 | 236 |
JavaScript | 1 | 39 | 59 | 107 |
SVG | 1 | 0 | 1 | 32 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin