Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼10.07ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Custom Fields: Font Awesome Field
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 41.59 ▼3.47 |
Dashboard /wp-admin | 3.34 ▼0.01 | 47.96 ▼20.04 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.69 ▼2.09 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.49 ▼14.67 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.21 ▲1.03 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Custom Fields: Font Awesome Field
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.28 ▼0.08 | 2.05 ▼0.12 | 42.85 ▲3.55 |
Dashboard /wp-admin | 2,189 ▲12 | 5.64 ▼0.04 | 97.70 ▲1.86 | 41.92 ▲2.46 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.06 ▲0.04 | 40.13 ▲2.12 | 35.30 ▼2.77 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 22.96 ▲5.11 | 650.72 ▼33.77 | 55.58 ▼2.14 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.23 ▲0.01 | 94.95 ▼15.54 | 43.36 ▼2.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/advanced-custom-fields-font-awesome/assets/js/templates/tmpl-fa-kit.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-custom-fields-font-awesome/admin/class-ACFFA-Admin.php:956
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Screenshots: A description for screenshot #3 is missing in advanced-custom-fields-font-awesome/assets to your readme.txt
advanced-custom-fields-font-awesome/acf-font-awesome.php 92% from 13 tests
"Advanced Custom Fields: Font Awesome Field" version 4.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-custom-fields-font-awesome.php" instead of "acf-font-awesome.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected68,030 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
YAML | 2 | 0 | 0 | 62,969 |
PHP | 10 | 670 | 326 | 3,315 |
JavaScript | 6 | 222 | 40 | 1,173 |
CSS | 4 | 29 | 11 | 307 |
Markdown | 3 | 77 | 0 | 266 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 89.75 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 257.00 |
Average method complexity | 6.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 140 | |
▷ Static methods | 10 | 7.14% |
▷ Public methods | 78 | 55.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 62 | 44.29% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 11 | 91.67% |
▷ Class constants | 1 | 8.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/inc/multi-select/switch.png | 0.53KB | 0.64KB | 0.00% |