Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼292.01ms] Passed 4 tests
Analyzing server-side resources used by Advanced Custom Fields: Markdown Field
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 52.32 ▲4.05 |
Dashboard /wp-admin | 3.41 ▲0.01 | 32.97 ▼1.13 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 37.89 ▲0.91 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 88.87 ▼1,170.60 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 25.18 ▲2.80 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 78 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Advanced Custom Fields: Markdown Field: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲19 | 15.89 ▲0.27 | 6.29 ▼0.19 | 2.36 ▲0.26 |
Dashboard /wp-admin | 2,888 ▲27 | 6.10 ▼0.17 | 116.94 ▼18.74 | 152.19 ▼10.74 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.23 ▼0.00 | 63.08 ▼1.46 | 140.40 ▼1.35 |
Add New Post /wp-admin/post-new.php | 1,760 ▲99 | 17.47 ▲1.27 | 428.99 ▲7.84 | 157.53 ▲3.09 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.50 ▲0.01 | 163.55 ▲27.22 | 197.47 ▲11.58 |
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 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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 have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields-markdown/acf-markdown-v5.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/advanced-custom-fields-markdown/acf-markdown.php:19
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields-markdown/acf-markdown-v4.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
advanced-custom-fields-markdown/acf-markdown.php 92% from 13 tests
The entry point to "Advanced Custom Fields: Markdown Field" version 1.1.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-custom-fields-markdown.php" instead of "acf-markdown.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin8,552 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 56 | 749 | 438 | 5,170 |
JavaScript | 4 | 423 | 600 | 2,009 |
Markdown | 8 | 363 | 0 | 885 |
PHP | 3 | 267 | 587 | 480 |
Stylus | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/lib/highlight/styles/school_book.png | 0.47KB | 0.34KB | ▼ 27.37% |
js/lib/highlight/styles/brown_papersq.png | 17.77KB | 9.92KB | ▼ 44.16% |