78% simple-accessibility

Code Review | Simple Accessibility

WordPress plugin Simple Accessibility scored78%from 54 tests.

About plugin

  • Plugin page: simple-accessibility
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.2
  • WordPress version: 6.3.1
  • First release: Sep 27, 2016
  • Latest release: Apr 12, 2023
  • Number of updates: 20
  • Update frequency: every 119.6 days
  • Top authors: web-mv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,420 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.07MB] [CPU: ▼4.00ms] Passed 4 tests

This is a short check of server-side resources used by Simple Accessibility
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.21 ▼4.15
Dashboard /wp-admin3.37 ▲0.0747.25 ▼8.36
Posts /wp-admin/edit.php3.49 ▲0.1350.71 ▲3.23
Add New Post /wp-admin/post-new.php5.96 ▲0.0699.18 ▼6.72
Media Library /wp-admin/upload.php3.30 ▲0.0640.07 ▲9.13
Simple Accessibility /wp-admin/options-general.php?page=simple-accessibility3.2734.24

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options
webmv_sa_plugin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_simple_accessibility_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Simple Accessibility
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲12313.45 ▼1.109.03 ▲6.8843.57 ▲1.34
Dashboard /wp-admin2,199 ▲225.60 ▼0.0594.83 ▼10.9943.07 ▼4.03
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0141.53 ▼1.2938.08 ▲0.63
Add New Post /wp-admin/post-new.php1,531 ▲623.35 ▲0.12690.74 ▲58.0353.68 ▲1.32
Media Library /wp-admin/upload.php1,398 ▼54.21 ▼0.00106.04 ▲5.7646.49 ▲3.27
Simple Accessibility /wp-admin/options-general.php?page=simple-accessibility8501.9925.7530.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_simple_accessibility_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simple-accessibility/class/Simple_Accessibility.php
    • > /wp-content/plugins/simple-accessibility/templates/options.php
    • > /wp-content/plugins/simple-accessibility/class/Simple_Accessibility_Widget.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/simple-accessibility/simple-accessibility.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt is a good inspiration

simple-accessibility/simple-accessibility.php Passed 13 tests

"Simple Accessibility" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
55 characters long description:
Make your website accessibility with just a few clicks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin3,038 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS28252,044
SVG100640
PHP64092219
JavaScript122575
PO File1202360

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity4.00
▷ Minimum class complexity2.00
▷ Maximum class complexity6.00
Average method complexity1.32
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods421.05%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.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
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/contrast.png0.87KB1.03KB0.00%
img/zoom_in.png0.89KB0.95KB0.00%
img/zoom_out.png0.82KB0.92KB0.00%
img/reset.png0.86KB0.99KB0.00%
img/sw.png1.11KB0.96KB▼ 13.43%