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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼309.22ms] Passed 4 tests
A check of server-side resources used by Advanced Custom Fields: CommonMark Field
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 57.46 ▲5.98 |
Dashboard /wp-admin | 3.42 ▲0.01 | 33.16 ▼6.27 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.49 ▼3.78 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 94.21 ▼1,220.57 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 26.05 ▼6.27 |
Server storage [IO: ▲1.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Custom Fields: CommonMark Field
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 16.17 ▲0.51 | 5.90 ▼0.97 | 3.09 ▲0.04 |
Dashboard /wp-admin | 2,892 ▲34 | 6.14 ▼0.08 | 122.58 ▼15.37 | 180.12 ▲13.00 |
Posts /wp-admin/edit.php | 2,670 ▼24 | 3.25 ▲0.02 | 65.43 ▲0.48 | 202.13 ▲53.39 |
Add New Post /wp-admin/post-new.php | 1,661 ▼56 | 16.01 ▼5.28 | 446.07 ▼23.63 | 205.84 ▲47.21 |
Media Library /wp-admin/upload.php | 1,695 ▼0 | 5.55 ▲0.02 | 139.54 ▼8.64 | 193.18 ▼12.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output 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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
3 plugin tags: acf, markdown, advanced custom fields
acf-commonmark/acf-commonmark.php Passed 13 tests
The entry point to "Advanced Custom Fields: CommonMark Field" version 1.0.11 is a PHP file that has certain tags in its header comment area
54 characters long description:
Markdown (CommonMark) field for Advanced Custom Fields
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
Success! There were no dangerous files found in this plugin1,148 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 4 | 138 | 0 | 707 |
Markdown | 3 | 65 | 0 | 292 |
PHP | 2 | 102 | 389 | 98 |
JavaScript | 3 | 9 | 34 | 48 |
SVG | 2 | 0 | 3 | 2 |
CSS | 1 | 2 | 3 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.07MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshot-1.png | 43.18KB | 44.42KB | 0.00% |
assets/images/screenshot-2.png | 31.74KB | 32.78KB | 0.00% |