84% hebrew-font

Code Review | Hebrew Font

WordPress plugin Hebrew Font scored 84% from 54 tests.

About plugin

  • Plugin page: hebrew-font
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-4.8.3
  • WordPress version: 6.3.1
  • First release: Apr 15, 2015
  • Latest release: Nov 3, 2017
  • Number of updates: 26
  • Update frequency: every 35.9 days
  • Top authors: WP100 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 6,007 total downloads

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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Hebrew Font
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.35 ▼1.79
Dashboard /wp-admin3.31 ▲0.0144.58 ▼4.32
Posts /wp-admin/edit.php3.36 ▲0.0045.83 ▼3.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.55 ▼8.01
Media Library /wp-admin/upload.php3.23 ▲0.0037.04 ▲1.56

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Hebrew Font
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.74 ▲0.151.77 ▲0.2036.16 ▼4.04
Dashboard /wp-admin2,206 ▲355.05 ▼0.80112.31 ▲12.0445.30 ▲2.05
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0139.38 ▲4.0835.12 ▲0.99
Add New Post /wp-admin/post-new.php1,547 ▲1218.49 ▼4.68584.80 ▼81.5461.66 ▲5.30
Media Library /wp-admin/upload.php1,388 ▲34.21 ▲0.07100.18 ▲4.5945.66 ▼0.99

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
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/hebrew-font/hebrew-font.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: dropdown, font, font-family, editor, mce...

hebrew-font/hebrew-font.php Passed 13 tests

The main PHP file in "Hebrew Font" ver. 0.3 adds more information about the plugin and also serves as the entry point for this plugin
86 characters long description:
Hebrew Font plugin provides an easy way to use Hebrew fonts on your WordPress website.

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
Everything looks great! No dangerous files found in this plugin3,103 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
HTML560501,896
SVG500665
CSS510524465
PHP1191570
JavaScript1007

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.03
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
5 PNG files occupy 0.42MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
fonts/comixno2/specimen_files/comixno2clm_medium-cleartype.png85.37KB51.63KB▼ 39.53%
fonts/miriamclm/specimen_files/miriamclm-bold-cleartype.png85.23KB51.41KB▼ 39.68%
fonts/miriamclm/specimen_files/miriamclm-book-cleartype.png85.64KB51.45KB▼ 39.92%
fonts/nehama/specimen_files/nehama-cleartype.png86.41KB52.06KB▼ 39.76%
fonts/comixno2/specimen_files/comixno2clm_bold-cleartype.png85.71KB51.75KB▼ 39.62%