84% pojo-accessibility

Code Review | One Click Accessibility

WordPress plugin One Click Accessibility scored84%from 54 tests.

About plugin

  • Plugin page: pojo-accessibility
  • Plugin version: 2.1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Oct 29, 2015
  • Latest release: Jul 23, 2023
  • Number of updates: 55
  • Update frequency: every 51.3 days
  • Top authors: KingYes (100%)

Code review

54 tests

User reviews

68 reviews

Install metrics

100,000+ active /372,080 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.12MB] [CPU: ▼1.29ms] Passed 4 tests

A check of server-side resources used by One Click Accessibility
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0645.74 ▲5.72
Dashboard /wp-admin3.45 ▲0.1545.02 ▼5.94
Posts /wp-admin/edit.php3.50 ▲0.1545.89 ▲0.54
Add New Post /wp-admin/post-new.php6.03 ▲0.1490.50 ▼1.07
Media Library /wp-admin/upload.php3.37 ▲0.1437.82 ▲1.31
Toolbar /wp-admin/admin.php?page=accessibility-toolbar3.3446.70
Settings /wp-admin/admin.php?page=accessibility-settings3.3428.18
Customize /wp-admin/customize.php?autofocus[section]=accessibility6.17166.24

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
pojo_a11y_customizer_options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for One Click Accessibility
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,213 ▲47813.58 ▼1.177.69 ▲5.9047.64 ▼2.93
Dashboard /wp-admin2,300 ▲1124.89 ▲0.04102.63 ▼6.8944.09 ▲0.71
Posts /wp-admin/edit.php2,126 ▲372.03 ▼0.0140.70 ▼1.3534.43 ▼1.86
Add New Post /wp-admin/post-new.php1,565 ▲5118.24 ▲0.75635.27 ▼63.6649.41 ▼11.65
Media Library /wp-admin/upload.php1,422 ▲374.21 ▲0.0093.20 ▼9.7840.85 ▼4.77
Toolbar /wp-admin/admin.php?page=accessibility-toolbar1,2502.1133.6435.87
Settings /wp-admin/admin.php?page=accessibility-settings1,0651.6830.3734.92
Customize /wp-admin/customize.php?autofocus[section]=accessibility9,11621.65615.84139.20

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • pojo_a11y_customizer_options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/customize.php?autofocus[section]=accessibility
    • > Security (warning) in unknown
    /?customize_changeset_uuid=59a48de5-9bac-4254-b49f-8027518693fa&customize_theme=twentytwentyone&customize_messenger_channel=preview-0 - An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: tools, toolbar, accessible, a11y, accessibility...

pojo-accessibility/pojo-accessibility.php 92% from 13 tests

The entry point to "One Click Accessibility" version 2.1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages/")

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
Everything looks great! No dangerous files found in this plugin2,990 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS20501,465
PHP6189551,277
JavaScript3656229
XML10019

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity15.67
▷ Minimum class complexity2.00
▷ Maximum class complexity33.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes350.00%
Methods51
▷ Static methods35.88%
▷ Public methods4282.35%
▷ Protected methods00.00%
▷ Private methods917.65%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants642.86%
▷ Class constants857.14%
▷ Public constants8100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.66MB with 0.39MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png262.78KB116.96KB▼ 55.49%
screenshot-2.png201.12KB81.42KB▼ 59.51%
screenshot-1.png215.75KB83.56KB▼ 61.27%