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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼295.43ms] Passed 4 tests
Server-side resources used by ACF Medium Editor Field
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.22 ▲0.01 | 59.98 ▼3.67 |
Dashboard /wp-admin | 4.04 ▲0.01 | 37.73 ▼4.24 |
Posts /wp-admin/edit.php | 4.34 ▲0.01 | 42.83 ▼0.98 |
Add New Post /wp-admin/post-new.php | 7.57 ▼0.02 | 103.00 ▼1,172.49 |
Media Library /wp-admin/upload.php | 3.99 ▲0.01 | 27.07 ▼1.32 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for ACF Medium Editor Field
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 15.79 ▼0.20 | 5.50 ▼0.29 | 2.46 ▼0.19 |
Dashboard /wp-admin | 2,895 ▲34 | 6.12 ▼0.11 | 132.17 ▼12.93 | 218.56 ▲53.47 |
Posts /wp-admin/edit.php | 2,688 ▲18 | 3.24 ▼0.01 | 70.34 ▲2.63 | 142.14 ▼44.22 |
Add New Post /wp-admin/post-new.php | 1,661 ▲21 | 16.09 ▼4.08 | 423.48 ▼1.94 | 193.62 ▼19.22 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.54 ▲0.01 | 151.03 ▲1.06 | 233.83 ▲0.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
Uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Medium Editor field when toolbar is not shown), #2 (Medium Editor Settings)
acf-medium-editor-field/acf-medium-editor.php 85% from 13 tests
The entry point to "ACF Medium Editor Field" version 2.6.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("acf-medium-editor-field.php" instead of "acf-medium-editor.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected6,890 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 1,202 | 1,502 | 5,427 |
CSS | 18 | 88 | 22 | 757 |
PHP | 2 | 177 | 313 | 559 |
PO File | 1 | 47 | 47 | 147 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 6.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 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
3 compressed PNG files occupy 0.05MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 8.16KB | 6.94KB | ▼ 14.96% |
screenshot-3.png | 38.24KB | 34.26KB | ▼ 10.41% |
screenshot-1.png | 5.63KB | 4.55KB | ▼ 19.22% |