79% accessibility-font-resizer

Code Review | Accessibility Font Resizer

WordPress plugin Accessibility Font Resizer scored79%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-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 29, 2019
  • Latest release: Jun 23, 2023
  • Number of updates: 37
  • Update frequency: every 41.1 days
  • Top authors: maximejobin (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

900+ active /6,974 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.19ms] Passed 4 tests

Analyzing server-side resources used by Accessibility Font Resizer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0147.18 ▲12.08
Dashboard /wp-admin3.32 ▲0.0249.61 ▼2.13
Posts /wp-admin/edit.php3.38 ▲0.0252.11 ▲2.45
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.74 ▼7.98
Media Library /wp-admin/upload.php3.25 ▲0.0235.02 ▼5.09
Font Resizer /wp-admin/options-general.php?page=swp-font-resizer3.2537.35

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Accessibility Font Resizer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲16513.47 ▼0.8512.29 ▲10.6741.56 ▼1.11
Dashboard /wp-admin2,202 ▲285.62 ▲0.0094.47 ▲5.1143.12 ▼3.13
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0133.59 ▼3.0334.19 ▼0.71
Add New Post /wp-admin/post-new.php1,529 ▲123.47 ▲0.42679.86 ▲9.8056.13 ▼3.46
Media Library /wp-admin/upload.php1,404 ▲44.15 ▼0.0295.83 ▼15.2341.38 ▼5.65
Font Resizer /wp-admin/options-general.php?page=swp-font-resizer9092.1622.6525.34

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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 no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /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 _e() in wp-content/plugins/accessibility-font-resizer/includes/views/options-page.php:3
    • > 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 get_option() in wp-content/plugins/accessibility-font-resizer/includes/views/debug.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 esc_attr() in wp-content/plugins/accessibility-font-resizer/includes/views/cookie.php:2
    • > 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 esc_attr() in wp-content/plugins/accessibility-font-resizer/includes/views/resize-large.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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: accessibility, text resizer, font resizer, font resize, font size...

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

"Accessibility Font Resizer" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 not allowed as they can serve as attack vectors
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 short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were 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

PNG files should be compressed to save space and 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%