Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲5.28MB] [CPU: ▲6.81ms] 75% from 4 tests
Analyzing server-side resources used by Better Font Awesome
The following require your attention
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.28MB on /wp-admin/options-general.php?page=better-font-awesome)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.97 ▲4.46 | 48.42 ▲4.23 |
Dashboard /wp-admin | 8.87 ▲5.48 | 64.30 ▲1.13 |
Posts /wp-admin/edit.php | 8.95 ▲5.55 | 60.00 ▲4.85 |
Add New Post /wp-admin/post-new.php | 11.77 ▲5.84 | 280.44 ▲175.89 |
Media Library /wp-admin/upload.php | 8.87 ▲5.60 | 53.49 ▲17.01 |
Better Font Awesome /wp-admin/options-general.php?page=better-font-awesome | 8.85 | 43.17 |
Server storage [IO: ▲5.35MB] [DB: ▲0.49MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 136 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
better-font-awesome_options |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Better Font Awesome
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 13.99 ▼0.41 | 4.49 ▲2.67 | 44.04 ▲0.54 |
Dashboard /wp-admin | 2,204 ▲30 | 5.32 ▼0.35 | 89.12 ▼4.16 | 37.74 ▼5.20 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.37 ▲0.37 | 35.09 ▼6.45 | 32.64 ▼7.30 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 22.30 ▼0.73 | 708.71 ▲38.22 | 34.58 ▼30.92 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.76 ▲0.58 | 97.58 ▼12.86 | 43.24 ▼4.19 |
Better Font Awesome /wp-admin/options-general.php?page=better-font-awesome | 866 | 2.17 | 25.41 | 25.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.49MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- better-font-awesome_options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 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)
Good news, no errors were detected
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
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/better-font-awesome/vendor/mickey-kay/better-font-awesome-library/vendor/mustangostang/spyc/php4/5to4.php
- > /wp-content/plugins/better-font-awesome/vendor/mickey-kay/better-font-awesome-library/vendor/mustangostang/spyc/examples/yaml-load.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/better-font-awesome/vendor/mickey-kay/better-font-awesome-library/vendor/mustangostang/spyc/tests/DumpTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/better-font-awesome/vendor/mickey-kay/better-font-awesome-library/vendor/mustangostang/spyc/tests/LoadTest.php:5
- > PHP Warning
file_get_contents(../spyc.php): failed to open stream: No such file or directory in wp-content/plugins/better-font-awesome/vendor/mickey-kay/better-font-awesome-library/vendor/mustangostang/spyc/php4/5to4.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/better-font-awesome/vendor/mickey-kay/better-font-awesome-library/vendor/mustangostang/spyc/tests/RoundTripTest.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-font-awesome/better-font-awesome.php:24
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/better-font-awesome/vendor/mickey-kay/better-font-awesome-library/vendor/mustangostang/spyc/tests/ParseTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/better-font-awesome/vendor/mickey-kay/better-font-awesome-library/vendor/mustangostang/spyc/tests/IndentTest.php:5
- > PHP Fatal error
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
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: bootstrap, shortcode, cdn, icons, font...
better-font-awesome/better-font-awesome.php Passed 13 tests
The entry point to "Better Font Awesome" version 2.0.4 is a PHP file that has certain tags in its header comment area
52 characters long description:
The ultimate Font Awesome icon plugin for WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin26,155 lines of code in 108 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 193 | 185 | 6,793 |
PHP | 26 | 927 | 1,654 | 4,573 |
JSON | 12 | 1 | 0 | 4,174 |
CSS | 7 | 13 | 54 | 2,680 |
SVG | 1 | 0 | 0 | 2,671 |
LESS | 17 | 77 | 131 | 2,055 |
Sass | 14 | 34 | 34 | 1,768 |
Markdown | 8 | 266 | 0 | 687 |
HTML | 2 | 21 | 10 | 315 |
YAML | 5 | 72 | 34 | 196 |
PO File | 1 | 23 | 28 | 178 |
XML | 3 | 10 | 12 | 65 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 257.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 295 | |
▷ Static methods | 18 | 6.10% |
▷ Public methods | 228 | 77.29% |
▷ Protected methods | 4 | 1.36% |
▷ Private methods | 63 | 21.36% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/mickey-kay/better-font-awesome-library/lib/fontawesome-iconpicker/extension/icon-large.png | 12.55KB | 5.02KB | ▼ 60.02% |
vendor/mickey-kay/better-font-awesome-library/lib/fontawesome-iconpicker/extension/screenshot.png | 210.46KB | 90.40KB | ▼ 57.05% |
vendor/mickey-kay/better-font-awesome-library/lib/fontawesome-iconpicker/extension/icon.png | 1.48KB | 0.74KB | ▼ 49.80% |