89% accessibility-font-resizer

Code Review | Accessibility Font Resizer

WordPress plugin Accessibility Font Resizer scored 89% from 54 tests.

About plugin

  • Plugin page: accessibility-fon...
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 5.9.2
  • First release: Apr 29, 2019
  • Latest release: Mar 14, 2021
  • Number of updates: 33
  • Update frequency: every 20.9 days
  • Top authors: maximejobin (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

600+ active / 4,288 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼294.54ms] Passed 4 tests

This is a short check of server-side resources used by Accessibility Font Resizer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1057.45 ▲8.37
Dashboard /wp-admin3.48 ▲0.0733.41 ▲0.51
Posts /wp-admin/edit.php3.70 ▲0.0638.43 ▲2.74
Add New Post /wp-admin/post-new.php6.94 ▼0.0396.62 ▼1,181.28
Media Library /wp-admin/upload.php3.36 ▲0.0626.62 ▼0.12
Font Resizer /wp-admin/options-general.php?page=swp-font-resizer3.3324.97

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Accessibility Font Resizer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,910 ▲16616.33 ▲0.6212.33 ▲4.353.12 ▲0.84
Dashboard /wp-admin2,897 ▲366.12 ▼0.03119.76 ▼19.43156.11 ▼6.51
Posts /wp-admin/edit.php2,692 ▼23.23 ▼0.0163.92 ▼0.48144.43 ▲1.85
Add New Post /wp-admin/post-new.php1,671 ▼4718.27 ▼4.38388.28 ▼35.72162.36 ▲5.61
Media Library /wp-admin/upload.php1,703 ▲25.51 ▲0.01143.15 ▼0.89187.06 ▼0.57
Font Resizer /wp-admin/options-general.php?page=swp-font-resizer1,1482.3654.85119.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/accessibility-font-resizer/accessibility-font-resizer.php
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/accessibility-font-resizer/includes/views/resize-large.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/accessibility-font-resizer/includes/views/cookie.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_textarea() in wp-content/plugins/accessibility-font-resizer/includes/views/elems.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/accessibility-font-resizer/includes/views/resize-xlarge.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/accessibility-font-resizer/includes/views/options-page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/accessibility-font-resizer/includes/views/resize-normal.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/accessibility-font-resizer/includes/views/debug.php:2

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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: font resizer, text size, font resize, accessibility, text resizer...

accessibility-font-resizer/accessibility-font-resizer.php Passed 13 tests

Analyzing the main PHP file in "Accessibility Font Resizer" version 1.0.4
115 characters long description:
Make accessibility better for your visitors by enabling them to resize the text on your website and make it bigger.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin275 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP103564210
JavaScript1163865

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.03
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.06
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods316.67%
▷ Public methods1794.44%
▷ Protected methods15.56%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/satellitewp.png2.71KB2.65KB▼ 2.34%