Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.21MB] [CPU: ▼44.15ms] Passed 4 tests
An overview of server-side resources used by Easy Font Icons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.76 ▼0.71 | 13.90 ▼31.46 |
Dashboard /wp-admin | 2.80 ▼0.51 | 17.76 ▼31.06 |
Posts /wp-admin/edit.php | 2.80 ▼0.56 | 16.66 ▼32.93 |
Add New Post /wp-admin/post-new.php | 2.80 ▼3.09 | 19.47 ▼81.13 |
Media Library /wp-admin/upload.php | 2.80 ▼0.43 | 17.25 ▼18.08 |
Easy Font Icons /wp-admin/options-general.php?page=efi-settings-main | 2.80 | 18.45 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Font Icons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.24 ▼0.12 | 1.62 ▼0.12 | 44.04 ▲6.53 |
Dashboard /wp-admin | 2,208 ▲28 | 5.54 ▼0.10 | 84.54 ▼2.80 | 41.47 ▼4.86 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.03 ▲0.01 | 35.24 ▼0.99 | 37.72 ▲2.27 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 18.17 ▼4.94 | 613.64 ▼62.80 | 67.26 ▲9.71 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.16 ▼0.05 | 95.94 ▼17.63 | 42.52 ▼5.47 |
Easy Font Icons /wp-admin/options-general.php?page=efi-settings-main | 862 | 2.04 | 23.71 | 28.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/easy-font-icons/lib/mm-easy-font-icons.php+36
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=efi-settings-main
- > Notice in wp-content/plugins/easy-font-icons/lib/mm-easy-font-icons.php+40
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=efi-settings-main
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=efi-settings-main
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-font-icons/index.php:37
- > PHP Notice
Undefined variable: current_font in wp-content/plugins/easy-font-icons/views/efi-meta-box.php on line 45
- > PHP Fatal error
Uncaught Error: Call to undefined function selected() in wp-content/plugins/easy-font-icons/views/efi-meta-box.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/easy-font-icons/views/efi-settings-page.php:11
- > PHP Notice
Undefined variable: current_icon in wp-content/plugins/easy-font-icons/views/efi-meta-box.php on line 45
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/easy-font-icons/views/efi-settings-page-old.php:17
- > PHP Notice
Undefined variable: current_font in wp-content/plugins/easy-font-icons/views/efi-meta-box.php on line 37
- > PHP Notice
Undefined variable: post in wp-content/plugins/easy-font-icons/views/efi-meta-box.php on line 45
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-font-icons/lib/old-functions.php:74
- > PHP Notice
Undefined variable: current_icon in wp-content/plugins/easy-font-icons/views/efi-meta-box.php on line 39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (Custom Meta Box screenshot-1.png.)
easy-font-icons/index.php 92% from 13 tests
Analyzing the main PHP file in "Easy Font Icons" version 1.0.12
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-font-icons.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,172 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 0 | 563 |
PHP | 8 | 412 | 91 | 425 |
CSS | 2 | 29 | 14 | 169 |
JavaScript | 1 | 18 | 8 | 15 |
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.17 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 18 | 100.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 146.54KB | 64.36KB | ▼ 56.08% |