Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼10.13ms] Passed 4 tests
Server-side resources used by MW Font Changer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.43 ▼0.03 | 24.28 ▼17.24 |
Dashboard /wp-admin | 3.37 ▲0.06 | 47.06 ▼1.73 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 50.21 ▲0.93 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 83.41 ▼22.46 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.65 ▲6.40 |
Server storage [IO: ▲8.74MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 111 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for MW Font Changer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲76 | 13.29 ▼1.02 | 4.14 ▲1.88 | 38.80 ▼6.86 |
Dashboard /wp-admin | 2,234 ▲52 | 5.85 ▼0.06 | 101.29 ▼0.32 | 47.81 ▲3.88 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.14 ▲0.09 | 36.45 ▼1.51 | 37.64 ▲3.00 |
Add New Post /wp-admin/post-new.php | 1,552 ▲18 | 22.97 ▲4.70 | 670.83 ▲19.24 | 50.99 ▼13.99 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.23 ▲0.04 | 111.76 ▲14.02 | 49.14 ▲5.31 |
MW Font Changer - Theme /wp-admin/mwfc-theme-font.php | 26 | 0.44 | 0.08 | 14.81 |
MW Font Changer - Dashboard /wp-admin/mwfc-dashboard-font.php | 26 | 0.44 | 0.07 | 7.15 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/parsi-font/includes/help.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/parsi-font/includes/pro.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/parsi-font/includes/plugin-dashboard-options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/parsi-font/includes/plugin-theme-options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/parsi-font/includes/wp-head-codes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/parsi-font/includes/feedback.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/parsi-font/includes/admin-head-codes.php:2
- > PHP Fatal error
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)
There are user-side issues you should fix
- > GET request to /wp-admin/mwfc-theme-font.php
- > Network (severe)
wp-admin/mwfc-theme-font.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/mwfc-dashboard-font.php
- > Network (severe)
wp-admin/mwfc-dashboard-font.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Dashboard font settings page), #2 (Theme font settings page)
- Tags: Please reduce the number of tags, currently 32 tag instead of maximum 10
parsi-font/mw-font-changer.php 85% from 13 tests
This is the main PHP file of "MW Font Changer" version 5.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- 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
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("parsi-font.php" instead of "mw-font-changer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin5,607 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
CSS | 6 | 257 | 13 | 1,545 |
PHP | 10 | 36 | 18 | 1,050 |
PO File | 1 | 89 | 122 | 295 |
JavaScript | 1 | 9 | 17 | 46 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.30MB with 0.17MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/classiden.png | 24.77KB | 12.06KB | ▼ 51.30% |
screenshot-2.png | 206.07KB | 61.68KB | ▼ 70.07% |
assets/images/classidfa.png | 21.95KB | 10.70KB | ▼ 51.25% |
screenshot-1.png | 52.54KB | 22.25KB | ▼ 57.64% |