83% webchin-kurdish-webfonts

Code Review | Webchin Kurdish Webfonts

WordPress plugin Webchin Kurdish Webfonts scored 83% from 54 tests.

About plugin

  • Plugin page: webchin-kurdish-w...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Nov 26, 2014
  • Latest release: Dec 18, 2014
  • Number of updates: 9
  • Update frequency: every 2.7 days
  • Top authors: Helbest (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

90+ active / 2,484 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.30ms] Passed 4 tests

Analyzing server-side resources used by Webchin Kurdish Webfonts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0351.58 ▲4.92
Dashboard /wp-admin3.34 ▲0.0252.22 ▲1.59
Posts /wp-admin/edit.php3.39 ▲0.0264.92 ▲14.98
Add New Post /wp-admin/post-new.php5.93 ▲0.0499.19 ▲1.37
Media Library /wp-admin/upload.php3.26 ▲0.0233.57 ▼6.70

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Webchin Kurdish Webfonts
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲4413.58 ▲0.342.21 ▲0.4943.05 ▼4.49
Dashboard /wp-admin2,210 ▲14.85 ▼0.00117.51 ▲20.5446.70 ▲8.93
Posts /wp-admin/edit.php2,096 ▲42.00 ▲0.0140.90 ▲4.5534.83 ▲1.15
Add New Post /wp-admin/post-new.php1,522 ▼617.44 ▼5.82613.89 ▼160.3957.42 ▼4.31
Media Library /wp-admin/upload.php1,395 ▲104.27 ▲0.1199.12 ▼20.2241.32 ▼10.19

Uninstaller [IO: ✅] [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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • 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
Everything seems fine, however this is by no means 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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/webchin-kurdish-webfonts/wp_kwf.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots require images: #1 (Shows the backend view with the font drop-down list and the size select list.), #2 (Displays what the user views from the front-end. Fonts are displayed consistently across browsers.)
The official readme.txt is a good inspiration

webchin-kurdish-webfonts/wp_kwf.php 85% from 13 tests

This is the main PHP file of "Webchin Kurdish Webfonts" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 353 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("webchin-kurdish-webfonts.php" instead of "wp_kwf.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin539 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS210229498
PHP1243341

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected