10% accessibility-font

Code Review | Accessibility Font

WordPress plugin Accessibility Font scored10%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: 6.3.1
  • 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

10+ active /2,103 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/accessibility-font/accessibilityfont.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; widget_accesstxt has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼60.70ms] Passed 4 tests

This is a short check of server-side resources used by Accessibility Font
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.21 ▼35.74
Dashboard /wp-admin2.10 ▼1.205.72 ▼47.66
Posts /wp-admin/edit.php2.11 ▼1.266.74 ▼42.02
Add New Post /wp-admin/post-new.php2.10 ▼3.795.62 ▼117.37
Media Library /wp-admin/upload.php2.10 ▼1.135.93 ▼30.75

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Accessibility Font
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.241.90 ▼0.0843.58 ▲1.89
Dashboard /wp-admin2,206 ▲186.01 ▲1.1196.19 ▼13.6539.24 ▼3.84
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0139.44 ▲4.9734.46 ▼2.70
Add New Post /wp-admin/post-new.php1,528 ▼523.28 ▼0.15601.44 ▼61.1253.69 ▼2.15
Media Library /wp-admin/upload.php1,385 ▼34.25 ▼0.0198.09 ▼13.3641.22 ▼8.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/accessibility-font/accessibilityfont.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; widget_accesstxt has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_accesstxt
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > 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 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes 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
Please take inspiration from this readme.txt

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

"Accessibility Font" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected79 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131479

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of 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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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