Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.82ms] Passed 4 tests
An overview of server-side resources used by FontIran Font Changer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.54 ▼3.55 |
Dashboard /wp-admin | 3.48 ▲0.17 | 45.66 ▼3.05 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 54.10 ▲7.11 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 84.15 ▼16.30 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 34.08 ▼0.38 |
پیشخوان /wp-admin/admin.php?page=wpfi | 3.38 | 34.09 |
مدیریت تایپوگرافی /wp-admin/admin.php?page=wpfi-fimf | 3.42 | 51.27 |
نصب فونت /wp-admin/admin.php?page=wpfi-finuf | 3.39 | 33.10 |
فونت ها /wp-admin/admin.php?page=wpfi-fiafi | 3.38 | 31.18 |
پیکربندی /wp-admin/admin.php?page=wpfi-options | 3.38 | 32.38 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
fontiran_default_options |
fontiran_new_option |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by FontIran Font Changer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 13.21 ▼1.15 | 1.56 ▼0.12 | 39.51 ▼4.94 |
Dashboard /wp-admin | 2,247 ▲62 | 5.82 ▼0.04 | 102.75 ▲2.02 | 46.41 ▲8.35 |
Posts /wp-admin/edit.php | 2,133 ▲41 | 2.02 ▼0.03 | 34.59 ▼6.20 | 38.80 ▼1.94 |
Add New Post /wp-admin/post-new.php | 1,566 ▲52 | 23.22 ▲5.59 | 693.87 ▲10.35 | 57.83 ▲0.77 |
Media Library /wp-admin/upload.php | 1,429 ▲44 | 4.22 ▲0.06 | 96.73 ▲3.11 | 49.57 ▲6.19 |
پیشخوان /wp-admin/admin.php?page=wpfi | 1,458 | 9.37 | 280.34 | 115.42 |
مدیریت تایپوگرافی /wp-admin/admin.php?page=wpfi-fimf | 3,114 | 2.47 | 49.48 | 79.73 |
نصب فونت /wp-admin/admin.php?page=wpfi-finuf | 1,050 | 1.96 | 24.24 | 44.02 |
فونت ها /wp-admin/admin.php?page=wpfi-fiafi | 852 | 1.86 | 25.34 | 45.20 |
پیکربندی /wp-admin/admin.php?page=wpfi-options | 860 | 1.84 | 25.32 | 53.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- can_compress_scripts
- db_upgraded
- fontiran_default_options
- widget_theysaidso_widget
- fontiran_new_option
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpfi-fimf
- > Notice in wp-content/plugins/fontiran-font-changer/core/views/wpfi-fimf-page.php+30
Undefined index: class
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/fontiran-font-changer/core/views/wpfi-fimf-side-page.php
- > /wp-content/plugins/fontiran-font-changer/core/views/wpfi-page.php
- > /wp-content/plugins/fontiran-font-changer/core/views/wpfi-fiafi-page.php
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
mkdir(): No such file or directory in wp-content/plugins/fontiran-font-changer/core/views/wpfi-finuf-page.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WP_Fontiran_Admin_Page' not found in wp-content/plugins/fontiran-font-changer/core/class-manager-page.php:6
- > PHP Warning
Use of undefined constant FIRAN_URL - assumed 'FIRAN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/fontiran-font-changer/core/views/wpfi-page.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/fontiran-font-changer/core/views/wpfi-finuf-page.php:10
- > PHP Warning
Use of undefined constant FIRAN_DATA - assumed 'FIRAN_DATA' (this will throw an Error in a future version of PHP) in wp-content/plugins/fontiran-font-changer/core/views/wpfi-finuf-page.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Fontiran_Admin_Page' not found in wp-content/plugins/fontiran-font-changer/core/class-fonts-page.php:6
- > PHP Warning
Use of undefined constant FIRAN_DATA - assumed 'FIRAN_DATA' (this will throw an Error in a future version of PHP) in wp-content/plugins/fontiran-font-changer/core/views/wpfi-finuf-page.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fontiran-font-changer/helpers/functions.php:136
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/fontiran-font-changer/core/views/wpfi-options-page.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Fontiran_Admin_Page' not found in wp-content/plugins/fontiran-font-changer/core/class-upload-page.php:6
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=wpfi-fiafi
- > Network (severe)
wp-content/plugins/fontiran-font-changer/fontiran.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Add Font), #2 (preview installed font), #3 (rules and options)
fontiran-font-changer/fontiran.php 85% from 13 tests
Analyzing the main PHP file in "FontIran Font Changer" version 3...
Please make the necessary changes and fix the following:
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "3...")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("fontiran-font-changer.php" instead of "fontiran.php")
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
There were no executable files found in this plugin2,152 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 409 | 129 | 1,086 |
CSS | 4 | 9 | 40 | 940 |
JavaScript | 2 | 32 | 1 | 90 |
SVG | 1 | 0 | 0 | 36 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 13.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 1 | 1.79% |
▷ Public methods | 25 | 44.64% |
▷ Protected methods | 22 | 39.29% |
▷ Private methods | 9 | 16.07% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
4 PNG files occupy 0.11MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/yektadg.png | 5.60KB | 2.98KB | ▼ 46.74% |
screenshot-1.png | 36.18KB | 34.60KB | ▼ 4.35% |
screenshot-2.png | 17.39KB | 14.62KB | ▼ 15.91% |
screenshot-3.png | 53.95KB | 53.10KB | ▼ 1.58% |