84% font-resize-accessibility-compliance

Code Review | Font Resize - Accessibility Compliance

WordPress plugin Font Resize - Accessibility Compliance scored84%from 54 tests.

About plugin

  • Plugin page: font-resize-acces...
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4.0
  • WordPress version: 6.3.1
  • First release: Jan 28, 2019
  • Latest release: May 4, 2020
  • Number of updates: 4
  • Update frequency: every 236.3 days
  • Top authors: RNesbitt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /652 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
Install script ran successfully

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

An overview of server-side resources used by Font Resize - Accessibility Compliance
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.40 ▼2.36
Dashboard /wp-admin3.31 ▲0.0049.81 ▼4.37
Posts /wp-admin/edit.php3.36 ▲0.0051.67 ▲0.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.13 ▼14.37
Media Library /wp-admin/upload.php3.23 ▲0.0037.58 ▼1.39

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Font Resize - Accessibility Compliance
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.27 ▼0.062.07 ▲0.3966.15 ▲21.88
Dashboard /wp-admin2,192 ▲125.50 ▼0.1493.43 ▼2.0341.16 ▼5.21
Posts /wp-admin/edit.php2,097 ▼31.99 ▼0.0036.76 ▼7.1938.29 ▲1.00
Add New Post /wp-admin/post-new.php1,526 ▼823.13 ▲4.72693.56 ▲29.9952.93 ▼13.12
Media Library /wp-admin/upload.php1,400 ▼04.12 ▼0.03117.16 ▲14.4654.28 ▲8.31

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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 no errors were found, 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
  • 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/font-resize-accessibility-compliance/font-resize-accessibility-compliance.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
1 plugin tags: accessibility

font-resize-accessibility-compliance/font-resize-accessibility-compliance.php 92% from 13 tests

The main file in "Font Resize - Accessibility Compliance" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin118 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript112270
CSS12029
PHP15819

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin