84% accessiblewp-images

Code Review | AccessibleWP - ALT Detector

WordPress plugin AccessibleWP - ALT Detector scored84%from 54 tests.

About plugin

  • Plugin page: accessiblewp-images
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0.2
  • WordPress version: 6.3.1
  • First release: Mar 5, 2020
  • Latest release: Sep 11, 2022
  • Number of updates: 10
  • Update frequency: every 92.5 days
  • Top authors: accessiblewp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,648 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by AccessibleWP - ALT Detector
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.12 ▼2.08
Dashboard /wp-admin3.35 ▲0.0452.45 ▼2.06
Posts /wp-admin/edit.php3.40 ▲0.0452.45 ▲1.16
Add New Post /wp-admin/post-new.php5.95 ▲0.0694.89 ▼12.71
Media Library /wp-admin/upload.php3.27 ▲0.0441.41 ▲4.94
AccessibleWP /wp-admin/admin.php?page=accessible-wp3.2432.03
Images /wp-admin/admin.php?page=acwp-images3.2436.67

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for AccessibleWP - ALT Detector
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲8613.29 ▼1.151.83 ▼0.1146.18 ▼0.80
Dashboard /wp-admin2,253 ▲475.84 ▲0.91104.35 ▲0.6896.02 ▲57.00
Posts /wp-admin/edit.php2,135 ▲352.01 ▲0.0435.79 ▼1.6636.97 ▼1.35
Add New Post /wp-admin/post-new.php1,559 ▲1422.97 ▼0.19635.24 ▼10.3566.33 ▲6.16
Media Library /wp-admin/upload.php1,431 ▲284.22 ▼0.02104.34 ▼1.9488.38 ▲42.85
AccessibleWP /wp-admin/admin.php?page=accessible-wp8572.0127.5731.15
Images /wp-admin/admin.php?page=acwp-images9072.0729.1637.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=acwp-images
    • > Network (severe)
    wp-content/plugins/accessiblewp-images/assets/admin.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=acwp-images
    • > Network (severe)
    wp-content/plugins/accessiblewp-images/assets/svg/accessible.svg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: accessibility, wcag, a11y, alt, accessible...

accessiblewp-images/accessiblewp-images.php 92% from 13 tests

The primary PHP file in "AccessibleWP - ALT Detector" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin199 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12551170
JavaScript27129

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
There are no PNG files in this plugin