84% fonts-arabic

Code Review | Arabic Fonts

WordPress plugin Arabic Fonts scored84%from 54 tests.

About plugin

  • Plugin page: fonts-arabic
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 23, 2023
  • Latest release: Feb 23, 2023
  • Number of updates: 6
  • Update frequency: every 85.5 days
  • Top authors: lusha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /220 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼11.53ms] Passed 4 tests

An overview of server-side resources used by Arabic Fonts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.54 ▼2.44
Dashboard /wp-admin3.31 ▼0.0445.74 ▼17.29
Posts /wp-admin/edit.php3.36 ▲0.0046.38 ▲3.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.80 ▼20.06
Media Library /wp-admin/upload.php3.23 ▲0.0034.61 ▼6.31

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Arabic Fonts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.36 ▼0.001.93 ▼0.0245.32 ▲3.08
Dashboard /wp-admin2,198 ▲275.63 ▲0.0090.63 ▼19.5838.17 ▼3.25
Posts /wp-admin/edit.php2,103 ▲31.94 ▼0.0140.81 ▲3.1733.92 ▲0.45
Add New Post /wp-admin/post-new.php1,526 ▼223.00 ▼0.11713.02 ▲13.2070.85 ▲4.72
Media Library /wp-admin/upload.php1,394 ▼34.19 ▼0.0294.89 ▼21.9642.34 ▼5.26

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fonts-arabic/fonts-arabic.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Requires at least: Version format is invalid
The official readme.txt is a good inspiration

fonts-arabic/fonts-arabic.php Passed 13 tests

The main file in "Arabic Fonts" v. 0.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
113 characters long description:
just a simple plugin for add some fonts to site, if activated this will not work but in rtl styled site or blogs.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin31 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS16021
PHP131210

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin