Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.41ms] Passed 4 tests
An overview of server-side resources used by Advanced Custom Fields: Media Field
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.24 ▼2.13 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.67 ▼6.53 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.05 ▼0.80 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.24 ▼12.17 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.80 ▲0.64 |
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, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Custom Fields: Media Field
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.69 ▼0.62 | 4.90 ▲3.15 | 44.42 ▲0.17 |
Dashboard /wp-admin | 2,209 ▲21 | 5.90 ▲1.03 | 109.86 ▼2.09 | 42.77 ▼0.34 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.02 ▲0.02 | 38.59 ▼8.92 | 36.17 ▼1.03 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.07 ▲4.93 | 676.42 ▲10.81 | 49.99 ▼6.05 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▲0.03 | 94.70 ▼7.00 | 39.93 ▼1.77 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > 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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: acf
acf-media/acf-media.php Passed 13 tests
"Advanced Custom Fields: Media Field" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
25 characters long description:
Creates Media field type.
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 detected376 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
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin