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
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼137.43ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Custom Fields: Button Field
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 38.74 ▲19.19 |
Dashboard /wp-admin | 3.07 ▲0.01 | 51.17 ▲13.73 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 48.22 ▲6.24 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 93.84 ▼570.03 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 36.38 ▲0.34 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Custom Fields: Button Field
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.83 ▼0.10 | 9.45 ▼0.54 | 51.84 ▲2.58 |
Dashboard /wp-admin | 2,973 ▲39 | 5.91 ▼0.08 | 140.38 ▼15.87 | 117.35 ▼9.05 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.02 | 64.80 ▼7.22 | 88.65 ▼3.61 |
Add New Post /wp-admin/post-new.php | 1,604 ▼79 | 18.81 ▲0.47 | 374.93 ▼38.55 | 113.01 ▼0.87 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 4.99 ▼0.01 | 160.02 ▼4.89 | 135.08 ▲12.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: link, button, page, pages, post...
acf-button/acf-button.php Passed 13 tests
The entry point to "Advanced Custom Fields: Button Field" version 1.7.3 is a PHP file that has certain tags in its header comment area
48 characters long description:
Adds a simple yet featured button field for ACF.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected719 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 118 | 197 | 668 |
JavaScript | 1 | 28 | 35 | 31 |
JSON | 1 | 0 | 0 | 11 |
CSS | 1 | 0 | 1 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 12.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 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
3 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 6.88KB | 3.46KB | ▼ 49.79% |
assets/icon-128x128.png | 5.27KB | 2.72KB | ▼ 48.28% |
assets/banner-772x250.png | 70.88KB | 31.61KB | ▼ 55.40% |