Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.84ms] Passed 4 tests
This is a short check of server-side resources used by Icons Font Loader
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.70 ▼4.85 |
Dashboard /wp-admin | 3.33 ▼0.02 | 47.12 ▼9.15 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 47.23 ▲3.61 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.45 ▼8.97 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.55 ▲7.04 |
Icons Font Loader /wp-admin/tools.php?page=icons-font-loader | 3.22 | 32.88 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_iconfonts |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Icons Font Loader
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲47 | 14.21 ▼0.14 | 1.95 ▼0.10 | 37.52 ▼7.86 |
Dashboard /wp-admin | 2,202 ▲28 | 5.60 ▲0.02 | 96.01 ▲0.57 | 40.67 ▲0.66 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.94 ▲0.00 | 39.11 ▼11.55 | 36.91 ▼3.67 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.35 ▲0.49 | 682.52 ▲91.39 | 67.16 ▲18.03 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.27 ▲0.10 | 96.18 ▼4.24 | 40.39 ▼1.52 |
Icons Font Loader /wp-admin/tools.php?page=icons-font-loader | 822 | 2.02 | 26.75 | 31.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_iconfonts
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in icons-font-loader/assets to your readme.txt
icons-font-loader/init.php 85% from 13 tests
The main PHP script in "Icons Font Loader" version 1.1.5 is automatically included on every request by WordPress
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 ("icons-font-loader.php" instead of "init.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected544 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 104 | 82 | 448 |
CSS | 1 | 9 | 0 | 71 |
JavaScript | 1 | 0 | 0 | 25 |
PHP code Passed 2 tests
This is a very shot review 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.37 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 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 | 1 | |
▷ Global constants | 1 | 100.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
No PNG images were found in this plugin