Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼295.24ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Custom Fields: DB Field
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 52.94 ▲4.33 |
Dashboard /wp-admin | 3.42 ▲0.01 | 32.24 ▼7.62 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 37.57 ▼0.56 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.08 | 110.85 ▼1,167.18 |
Media Library /wp-admin/upload.php | 3.30 ▼0.00 | 26.32 ▼5.59 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Advanced Custom Fields: DB Field: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,785 ▲63 | 15.94 ▲0.33 | 5.81 ▲0.04 | 2.17 ▲0.14 |
Dashboard /wp-admin | 2,888 ▲34 | 6.09 ▼0.13 | 116.64 ▼22.07 | 152.21 ▼11.09 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.23 ▲0.01 | 64.35 ▲1.17 | 140.08 ▼4.42 |
Add New Post /wp-admin/post-new.php | 1,781 ▲29 | 22.69 ▲1.46 | 458.69 ▲8.55 | 198.18 ▲44.57 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.53 ▼0.00 | 143.02 ▲2.63 | 189.72 ▼8.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following items
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: field in wp-content/plugins/acf-db-field/views/parts-item-list.php on line 1
- > PHP Notice
Undefined variable: field in wp-content/plugins/acf-db-field/views/parts-item-list.php on line 2
- > PHP Notice
Undefined variable: posts in wp-content/plugins/acf-db-field/views/parts-item-list.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-db-field/fields/acf-db-common.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acf-db-field/views/parts-item-list.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/acf-db-field/views/parts-item-list.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acf-db-field/views/parts-item-list.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'acf_db_common' not found in wp-content/plugins/acf-db-field/fields/acf-db.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (DB Field Settings), #2 (Edit Post With DB Field)
acf-db-field/acf-db.php 85% from 13 tests
The principal PHP file in "Advanced Custom Fields: DB Field" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("acf-db-field.php" instead of "acf-db.php")
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 detected459 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 7 | 27 | 273 |
JavaScript | 1 | 0 | 0 | 163 |
Markdown | 1 | 7 | 0 | 14 |
CSS | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 10.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
2 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 40.92KB | 20.55KB | ▼ 49.76% |
screenshot-2.png | 26.78KB | 14.00KB | ▼ 47.74% |