Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼0.09ms] Passed 4 tests
Analyzing server-side resources used by Persian Admnin Fonts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 46.14 ▲5.68 |
Dashboard /wp-admin | 3.42 ▲0.12 | 48.38 ▼1.34 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 52.22 ▲12.22 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 82.78 ▼4.94 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.49 ▲0.25 |
Persian-Fonts /wp-admin/options-general.php?page=persian-fonts-options | 3.91 | 53.87 |
Server storage [IO: ▲13.87MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 253 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
pfmdz_redirect_onActivate |
widget_recent-comments |
pfmdz_empty_onDeactivate |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Persian Admnin Fonts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲47 | 14.27 ▼0.11 | 1.60 ▼0.13 | 42.58 ▼2.42 |
Dashboard /wp-admin | 2,196 ▲16 | 5.54 ▼0.11 | 87.97 ▼9.73 | 38.22 ▼4.41 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.97 ▲0.03 | 40.82 ▼0.84 | 36.78 ▼1.99 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.45 ▲0.25 | 704.29 ▲39.58 | 66.44 ▲14.51 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.15 ▼0.06 | 98.50 ▲0.38 | 43.35 ▲0.12 |
Persian-Fonts /wp-admin/options-general.php?page=persian-fonts-options | 3,672 | 1.66 | 27.11 | 99.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options detected upon uninstall: 8 options
- pfmdz_redirect_onActivate
- theysaidso_admin_options
- pfmdz_empty_onDeactivate
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=persian-fonts-options
- > Notice in wp-content/plugins/persian-admin-fonts/templates/html/settingspagehtml.php+1352
Undefined offset: 1
SRP 50% 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
- 12× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/persian-admin-fonts/admin/class-admin.php
- > /wp-content/plugins/persian-admin-fonts/templates/html/settingspagehtml.php
- > /wp-content/plugins/persian-admin-fonts/templates/html/our-fav-fonts.php
- > /wp-content/plugins/persian-admin-fonts/templates/html/help3html.php
- > /wp-content/plugins/persian-admin-fonts/templates/html/help4html.php
- > /wp-content/plugins/persian-admin-fonts/templates/html/help1html.php
- > /wp-content/plugins/persian-admin-fonts/templates/html/help2html.php
- > /wp-content/plugins/persian-admin-fonts/templates/html/our-services.php
- > /wp-content/plugins/persian-admin-fonts/persianadminfonts-bymdez.php
- > /wp-content/plugins/persian-admin-fonts/front/class-front.php
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 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: free farsi fonts for wp-admin
persian-admin-fonts/persianadminfonts-bymdez.php 85% from 13 tests
The principal PHP file in "Persian Admnin Fonts" v. 4.0.25 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("persian-admin-fonts.php" instead of "persianadminfonts-bymdez.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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 plugin3,319 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 646 | 131 | 2,366 |
PO File | 1 | 183 | 240 | 612 |
SVG | 5 | 0 | 5 | 244 |
CSS | 5 | 17 | 2 | 96 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 23 | |
▷ Static methods | 1 | 4.35% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 6 | 60.00% |
▷ Anonymous functions | 4 | 40.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/close.png | 1.12KB | 0.38KB | ▼ 66.40% |