Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.12ms] Passed 4 tests
A check of server-side resources used by Persian Font Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.02 ▼7.16 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.39 ▼1.32 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.01 ▲1.11 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 82.13 ▼13.12 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.07 ▲3.55 |
Persian Font Manager /wp-admin/tools.php?page=wpfm-persian | 3.21 | 31.78 |
Server storage [IO: ▲18.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 275 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Persian Font Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.30 ▼1.01 | 4.12 ▲2.42 | 36.88 ▼6.91 |
Dashboard /wp-admin | 2,213 ▲28 | 5.86 ▲0.06 | 97.79 ▼6.01 | 38.80 ▲0.24 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▼0.01 | 38.82 ▲2.98 | 35.20 ▼4.56 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.61 ▼5.82 | 683.27 ▲36.63 | 53.18 ▼12.20 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.27 ▲0.08 | 98.65 ▼4.23 | 47.55 ▲3.99 |
Persian Font Manager /wp-admin/tools.php?page=wpfm-persian | 991 | 2.06 | 23.75 | 28.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function WPFM_Persian\\plugin_dir_url() in wp-content/plugins/persian-font-manager/index.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% 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
No tags were detected
persian-font-manager/index.php 77% from 13 tests
The principal PHP file in "Persian Font Manager" v. 1.0.... is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("persian-font-manager.php" instead of "index.php")
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1.0....")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin42,466 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 22 | 0 | 0 | 40,376 |
CSS | 17 | 340 | 207 | 1,838 |
PHP | 2 | 36 | 46 | 177 |
PO File | 1 | 933 | 1,839 | 75 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 3 | 21.43% |
▷ Public methods | 14 | 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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin