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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼295.74ms] Passed 4 tests
A check of server-side resources used by Advanced Custom Data
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 52.99 ▲0.79 |
Dashboard /wp-admin | 3.49 ▲0.08 | 34.91 ▼1.66 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 38.05 ▲2.35 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.02 | 95.21 ▼1,183.05 |
Media Library /wp-admin/upload.php | 3.37 ▲0.07 | 26.95 ▲0.96 |
All Data /wp-admin/edit.php?post_type=acd-data | 3.41 | 26.72 |
Add New /wp-admin/post-new.php?post_type=acd-data | 3.66 | 42.23 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Advanced Custom Data: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,823 ▲81 | 16.01 ▲0.43 | 5.67 ▼0.30 | 2.13 ▲0.01 |
Dashboard /wp-admin | 2,934 ▲76 | 6.17 ▲0.02 | 115.70 ▼21.93 | 154.37 ▼8.73 |
Posts /wp-admin/edit.php | 2,725 ▲34 | 3.24 ▲0.01 | 65.01 ▼2.61 | 141.52 ▼16.94 |
Add New Post /wp-admin/post-new.php | 1,715 ▲25 | 21.25 ▲0.66 | 447.92 ▲2.04 | 154.33 ▼1.45 |
Media Library /wp-admin/upload.php | 1,741 ▲46 | 5.51 ▲0.05 | 141.31 ▼14.51 | 190.22 ▲0.61 |
All Data /wp-admin/edit.php?post_type=acd-data | 1,403 | 3.16 | 59.41 | 110.99 |
Add New /wp-admin/post-new.php?post_type=acd-data | 2,528 | 5.59 | 94.49 | 158.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-custom-data/includes/custom-post.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: contact form 7, custom data, advanced custom fields, advanced custom data
advanced-custom-data/acd.php 85% from 13 tests
The entry point to "Advanced Custom Data" version 1.0.7 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("advanced-custom-data.php" instead of "acd.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin356 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 87 | 147 | 356 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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
PNG images were not found in this plugin