10% accessibility-font

Code Review | Accessibility Font

WordPress plugin Accessibility Font scored 10% from 54 tests.

About plugin

  • Plugin page: accessibility-font
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 5.9.2
  • First release: Sep 17, 2015
  • Latest release: Sep 25, 2015
  • Number of updates: 11
  • Update frequency: every 28.3 days
  • Top authors: mariogonh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,894 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/accessibility-font/accessibilityfont.php+95
    Function create_function() is deprecated

Server metrics [RAM: ▼2.53MB] [CPU: ▼348.29ms] Passed 4 tests

A check of server-side resources used by Accessibility Font
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.84 ▼1.674.58 ▼43.81
Dashboard /wp-admin1.86 ▼1.553.92 ▼29.71
Posts /wp-admin/edit.php1.86 ▼1.784.00 ▼34.35
Add New Post /wp-admin/post-new.php1.86 ▼5.114.61 ▼1,285.29
Media Library /wp-admin/upload.php1.86 ▼1.443.82 ▼19.74

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Accessibility Font
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1015.83 ▲0.126.72 ▼0.203.53 ▲0.98
Dashboard /wp-admin2,895 ▲346.09 ▼0.17116.66 ▼20.45156.89 ▼2.94
Posts /wp-admin/edit.php2,688 ▼63.37 ▲0.1264.17 ▼0.93139.22 ▼8.98
Add New Post /wp-admin/post-new.php1,760 ▲6222.72 ▲0.47408.27 ▼3.26157.47 ▲3.76
Media Library /wp-admin/upload.php1,698 ▲35.52 ▲0.00145.79 ▲4.26187.03 ▼0.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/accessibility-font/accessibilityfont.php+95
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_accesstxt

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/accessibility-font/accessibilityfont.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

accessibility-font/accessibilityfont.php 92% from 13 tests

The primary PHP file in "Accessibility Font" version 1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("accessibility-font.php" instead of "accessibilityfont.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
No dangerous file extensions were detected79 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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