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.03MB] [CPU: ▼289.79ms] Passed 4 tests
A check of server-side resources used by Advanced Custom Fields Viewer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▼0.04 | 47.94 ▼3.68 |
Dashboard /wp-admin | 3.42 ▲0.01 | 32.27 ▼1.57 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 35.29 ▼2.73 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 106.59 ▼1,150.44 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 25.68 ▼2.29 |
ACF Viewer /wp-admin/options-general.php?page=advanced-custom-fields-viewer/admin/options.php | 3.27 | 22.28 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Advanced Custom Fields Viewer: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,886 ▲132 | 16.22 ▲0.19 | 8.86 ▲3.11 | 18.25 ▲15.58 |
Dashboard /wp-admin | 2,897 ▲39 | 6.12 ▼0.05 | 119.02 ▼9.85 | 154.79 ▼2.14 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.24 ▲0.01 | 62.14 ▼2.63 | 135.31 ▼8.12 |
Add New Post /wp-admin/post-new.php | 1,714 ▲53 | 20.67 ▲3.96 | 447.68 ▲30.08 | 157.60 ▼6.33 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.57 ▲0.08 | 142.56 ▼9.11 | 186.94 ▼7.32 |
ACF Viewer /wp-admin/options-general.php?page=advanced-custom-fields-viewer/admin/options.php | 1,182 | 2.43 | 55.05 | 133.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-custom-fields-viewer/admin/general.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-custom-fields-viewer/viewer.php:87
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-custom-fields-viewer/admin/options.php:15
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
advanced-custom-fields-viewer/acfv.php 92% from 13 tests
The main PHP script in "Advanced Custom Fields Viewer" version 1.2.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-custom-fields-viewer.php" instead of "acfv.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin885 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 93 | 15 | 582 |
PHP | 5 | 31 | 12 | 212 |
JavaScript | 1 | 7 | 6 | 62 |
JSON | 1 | 0 | 0 | 19 |
Markdown | 1 | 7 | 0 | 10 |
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.26 |
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 | 7 | |
▷ Named functions | 7 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected