78% cool-accessibility

Code Review | Cool Accessibility

WordPress plugin Cool Accessibility scored78%from 54 tests.

About plugin

  • Plugin page: cool-accessibility
  • Plugin version: 1.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.6-5.9.2
  • WordPress version: 6.3.1
  • First release: Apr 24, 2018
  • Latest release: Apr 1, 2022
  • Number of updates: 14
  • Update frequency: every 103.4 days
  • Top authors: michaelb4g (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /989 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.63ms] Passed 4 tests

This is a short check of server-side resources used by Cool Accessibility
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0230.87 ▼11.02
Dashboard /wp-admin3.42 ▲0.1252.40 ▲0.18
Posts /wp-admin/edit.php3.54 ▲0.1849.42 ▲0.03
Add New Post /wp-admin/post-new.php6.02 ▲0.1393.78 ▲0.29
Media Library /wp-admin/upload.php3.35 ▲0.1135.71 ▲3.20
Cool Accessibility /wp-admin/plugins.php?page=cool-accessibility3.2932.66

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Cool Accessibility: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,142 ▲39613.56 ▼1.2112.85 ▲11.1447.35 ▲0.60
Dashboard /wp-admin2,232 ▲475.12 ▼0.73114.40 ▲9.3041.29 ▼0.69
Posts /wp-admin/edit.php2,117 ▲312.31 ▲0.3239.23 ▲5.6233.23 ▼0.84
Add New Post /wp-admin/post-new.php1,531 ▲1223.41 ▲0.06694.22 ▲86.8836.56 ▼32.37
Media Library /wp-admin/upload.php1,408 ▲234.44 ▲0.2696.20 ▼4.9841.40 ▼6.75
Cool Accessibility /wp-admin/plugins.php?page=cool-accessibility1,2072.3251.2932.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/plugins.php?page=cool-accessibility
    • > Notice in wp-content/plugins/cool-accessibility/cool-accessibility.php+596
    Trying to access array offset on value of type bool

SRP 50% 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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cool-accessibility/cool-accessibility.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

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

The main file in "Cool Accessibility" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
64 characters long description:
Accessibility plugin - Make the site easier to read and navigate

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin3,865 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript37656462,468
CSS2205131836
PHP115657471
PO File1381590

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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
32 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/prevent-animation_transparent_desat.png4.54KB3.59KB▼ 21.01%
icons/invert_colors.png1.78KB1.45KB▼ 18.59%
icons/links.png6.14KB3.95KB▼ 35.73%
icons/cursor_big_black.png4.96KB1.94KB▼ 60.95%
icons/dock_access_menu_right.png1.31KB0.74KB▼ 43.59%