83% chrome-font-rendering-fix

Code Review | Chrome and Safari Web Font Rendering Fix

WordPress plugin Chrome and Safari Web Font Rendering Fix scored83%from 54 tests.

About plugin

  • Plugin page: chrome-font-rende...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Apr 2, 2014
  • Latest release: Apr 2, 2014
  • Number of updates: 2
  • Update frequency: every 6.0 days
  • Top authors: pntrivedy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,848 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.76ms] Passed 4 tests

Analyzing server-side resources used by Chrome and Safari Web Font Rendering Fix
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.41 ▼1.28
Dashboard /wp-admin3.31 ▲0.0052.75 ▼0.22
Posts /wp-admin/edit.php3.36 ▲0.0054.22 ▼3.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.87 ▼21.89
Media Library /wp-admin/upload.php3.23 ▲0.0040.93 ▲4.36

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Chrome and Safari Web Font Rendering Fix
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,873 ▲11214.78 ▲0.227.49 ▲5.7044.56 ▼2.11
Dashboard /wp-admin2,195 ▲155.61 ▼0.0590.14 ▼8.5839.89 ▼2.39
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0137.59 ▲3.0932.46 ▼7.69
Add New Post /wp-admin/post-new.php1,526 ▼023.15 ▼0.27677.53 ▲10.2461.13 ▲10.97
Media Library /wp-admin/upload.php1,397 ▼04.17 ▼0.03109.16 ▲8.9848.40 ▲2.71

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chrome-font-rendering-fix/chrome-font-rendering-bugfix-wordpress-plugin.php:47

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Screenshots: Add images for these screenshots: #1 (screen 1.jpg), #2 (screen 2.jpg)
  • Plugin Name: You should set the name of your plugin on the first line ( === chrome-font-rendering-fix === )
The official readme.txt is a good inspiration

chrome-font-rendering-fix/chrome-font-rendering-bugfix-wordpress-plugin.php 92% from 13 tests

The principal PHP file in "Chrome and Safari Web Font Rendering Fix" v. 0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("chrome-font-rendering-fix.php" instead of "chrome-font-rendering-bugfix-wordpress-plugin.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
Good job! No executable or dangerous file extensions detected30 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18930

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.00
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected