Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲3.93MB] [CPU: ▲13.25ms] Passed 4 tests
An overview of server-side resources used by Font Farsi
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.23 ▲3.76 | 70.59 ▲31.59 |
Dashboard /wp-admin | 7.34 ▲3.99 | 59.69 ▲3.14 |
Posts /wp-admin/edit.php | 7.39 ▲4.03 | 63.12 ▲18.97 |
Add New Post /wp-admin/post-new.php | 9.87 ▲3.99 | 105.77 ▲10.47 |
Media Library /wp-admin/upload.php | 7.20 ▲3.97 | 55.43 ▲20.42 |
راهنما /wp-admin/admin.php?page=font-farsi-help | 7.16 | 43.95 |
فونت فارسی /wp-admin/admin.php?page=font-farsi-main | 7.28 | 85.26 |
فونت سفارشی /wp-admin/admin.php?page=font-farsi-custom-font | 7.36 | 123.54 |
Server storage [IO: ▲2.88MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics 75% from 4 tests
This is an overview of browser requirements for Font Farsi
Having an awesome user experience is important, so please improve the following
- Nodes: Try to keep the DOM nodes under 25,000 (currently 27,189 on /wp-admin/admin.php?page=font-farsi-custom-font)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲123 | 13.72 ▼0.90 | 1.93 ▲0.35 | 42.32 ▲3.29 |
Dashboard /wp-admin | 2,246 ▲66 | 5.56 ▼0.04 | 94.57 ▲4.38 | 44.39 ▲5.36 |
Posts /wp-admin/edit.php | 2,154 ▲57 | 2.61 ▲0.61 | 44.13 ▲9.81 | 34.57 ▼0.55 |
Add New Post /wp-admin/post-new.php | 1,566 ▲37 | 23.74 ▲0.83 | 698.44 ▲51.86 | 53.09 ▼1.55 |
Media Library /wp-admin/upload.php | 1,451 ▲48 | 5.14 ▲0.96 | 109.57 ▲14.96 | 47.34 ▲2.37 |
راهنما /wp-admin/admin.php?page=font-farsi-help | 896 | 2.32 | 35.44 | 41.56 |
فونت فارسی /wp-admin/admin.php?page=font-farsi-main | 13,145 | 3.57 | 105.74 | 105.17 |
فونت سفارشی /wp-admin/admin.php?page=font-farsi-custom-font | 27,189 | 4.49 | 176.40 | 157.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/font-farsi/class/class-custom-font-panel-cb.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=font-farsi-main
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=font-farsi-main 177 The specified value "/" cannot be parsed, or is out of range.
- > GET request to /wp-admin/admin.php?page=font-farsi-main
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=font-farsi-main 580 The specified value "/" cannot be parsed, or is out of range.
- > GET request to /wp-admin/admin.php?page=font-farsi-main
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=font-farsi-main 979 The specified value "/" cannot be parsed, or is out of range.
- > GET request to /wp-admin/admin.php?page=font-farsi-main
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=font-farsi-main 1378 The specified value "/" cannot be parsed, or is out of range.
- > GET request to /wp-admin/admin.php?page=font-farsi-main
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=font-farsi-main 1778 The specified value "/" cannot be parsed, or is out of range.
- > GET request to /wp-admin/admin.php?page=font-farsi-main
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=font-farsi-main 2176 The specified value "/" cannot be parsed, or is out of range.
Optimizations
Plugin configuration Passed 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
7 plugin tags: farsi, site font, font, custom css, persian...
font-farsi/font-farsi.php Passed 13 tests
"Font Farsi" version 1.6.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
31 characters long description:
Add Persian Fonts To Your Site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin31,235 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 16 | 2,506 | 2,226 | 17,304 |
PHP | 24 | 1,028 | 495 | 11,387 |
CSS | 10 | 150 | 98 | 1,668 |
SVG | 1 | 0 | 0 | 643 |
PO File | 1 | 104 | 584 | 233 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.02 |
Average class complexity | 5.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 2 | 2.47% |
▷ Public methods | 79 | 97.53% |
▷ Protected methods | 2 | 2.47% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/plus.png | 6.00KB | 2.03KB | ▼ 66.21% |
assets/img/negative.png | 5.82KB | 1.95KB | ▼ 66.47% |
assets/img/toggle-open.png | 0.23KB | 0.23KB | ▼ 1.28% |
assets/img/toggle-close.png | 0.23KB | 0.23KB | ▼ 2.11% |