Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼300.69ms] Passed 4 tests
This is a short check of server-side resources used by ACF Stylizer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.04 | 56.48 ▲1.10 |
Dashboard /wp-admin | 3.42 ▲0.02 | 33.05 ▲0.75 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 43.33 ▲6.12 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.08 | 92.06 ▼1,203.52 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 23.79 ▼1.08 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for ACF Stylizer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,786 ▲32 | 15.90 ▲0.17 | 6.50 ▲0.59 | 2.36 ▼0.59 |
Dashboard /wp-admin | 2,895 ▲41 | 6.12 ▼0.12 | 120.37 ▼8.51 | 154.53 ▼9.14 |
Posts /wp-admin/edit.php | 2,688 ▼0 | 3.23 ▼0.01 | 63.66 ▲2.11 | 140.95 ▼5.09 |
Add New Post /wp-admin/post-new.php | 1,661 ▼39 | 16.38 ▼4.66 | 402.36 ▼45.38 | 156.63 ▼16.86 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.53 ▼0.04 | 151.91 ▼1.88 | 193.41 ▲0.15 |
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 Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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
No output text or server-side errors detected on direct access of PHP files
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)
No browser issues were found
Optimizations
Plugin configuration Passed 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
10 plugin tags: acf, colorize, advanced, boxes, obvious...
acf-stylizer/acf-stylizer.php Passed 13 tests
The main file in "ACF Stylizer" v. 2.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
88 characters long description:
Simple plugin that stylizes Advanced Custom Fields meta boxes to make them more obvious.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3,411 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 427 | 1,743 | 1,716 |
CSS | 6 | 0 | 8 | 1,683 |
JSON | 1 | 0 | 0 | 7 |
JavaScript | 4 | 0 | 3 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 11.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 2 | 10.53% |
▷ Concrete classes | 17 | 89.47% |
▷ Final classes | 17 | 100.00% |
Methods | 91 | |
▷ Static methods | 35 | 38.46% |
▷ Public methods | 74 | 81.32% |
▷ Protected methods | 12 | 13.19% |
▷ Private methods | 5 | 5.49% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 21 | |
▷ Global constants | 1 | 4.76% |
▷ Class constants | 20 | 95.24% |
▷ Public constants | 20 | 100.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
8 PNG files occupy 0.44MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/release/images/YourWordPressDXP300x600.png | 136.86KB | 60.69KB | ▼ 55.65% |
assets/debug/images/robert-noakes.png | 6.28KB | 5.31KB | ▼ 15.39% |
assets/debug/images/YourWordPressDXP300x600.png | 136.86KB | 60.69KB | ▼ 55.65% |
assets/debug/images/noakes-plugins.png | 8.04KB | 6.25KB | ▼ 22.23% |
assets/release/images/noakes-plugins.png | 8.04KB | 6.25KB | ▼ 22.23% |