89% shayanweb-admin-fontchanger

Code Review | ShayanWeb Admin FontChanger | افزونه‌ی تغییر فونت پیشخوان وردپرس شایان وب

WordPress plugin ShayanWeb Admin FontChanger | افزونه‌ی تغییر فونت پیشخوان وردپرس شایان وب scored89%from 54 tests.

About plugin

  • Plugin page: shayanweb-admin-f...
  • Plugin version: 1.7.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Oct 28, 2021
  • Latest release: Nov 8, 2023
  • Number of updates: 19
  • Update frequency: every 39.1 days
  • Top authors: shayanfp (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /4,203 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.84ms] Passed 4 tests

Analyzing server-side resources used by ShayanWeb Admin FontChanger | افزونه‌ی تغییر فونت پیشخوان وردپرس شایان وب
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0733.86 ▼9.39
Dashboard /wp-admin3.37 ▲0.0749.16 ▼0.79
Posts /wp-admin/edit.php3.43 ▲0.0647.76 ▼0.13
Add New Post /wp-admin/post-new.php5.96 ▲0.0695.14 ▲7.12
Media Library /wp-admin/upload.php3.30 ▲0.0634.64 ▲2.94
شایان وب فونت /wp-admin/options-general.php?page=shayanweb-fontchanger-options3.2731.27

Server storage [IO: ▲2.81MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
shayanweb_fontchanger_options
widget_recent-posts

Browser metrics Passed 4 tests

ShayanWeb Admin FontChanger | افزونه‌ی تغییر فونت پیشخوان وردپرس شایان وب: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7214.21 ▼0.141.59 ▼0.2167.31 ▲22.37
Dashboard /wp-admin2,212 ▲415.61 ▼0.0593.69 ▼12.5957.74 ▲3.55
Posts /wp-admin/edit.php2,123 ▲232.10 ▲0.1640.70 ▼0.5147.45 ▲11.81
Add New Post /wp-admin/post-new.php1,546 ▲2123.09 ▼0.55645.01 ▲51.7958.15 ▲2.76
Media Library /wp-admin/upload.php1,414 ▲114.18 ▼0.05100.72 ▼2.0234.90 ▼10.46
شایان وب فونت /wp-admin/options-general.php?page=shayanweb-fontchanger-options9772.1929.1567.38

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • shayanweb_fontchanger_options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 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 Passed 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
The SRP test was a success

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 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: admin, wp-admin, fonts

shayanweb-admin-fontchanger/shayanweb-fontchanger.php 85% from 13 tests

The primary PHP file in "ShayanWeb Admin FontChanger | افزونه‌ی تغییر فونت پیشخوان وردپرس شایان وب" version 1.7.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Plugin Name: Please shorten the plugin name (currently 111 characters long instead of max. 70)
  • Main file name: The principal plugin file should be the same as the plugin slug ("shayanweb-admin-fontchanger.php" instead of "shayanweb-fontchanger.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin625 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP112265484
CSS719119
JavaScript13022

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin