94% accessiblewp-images

Code Review | AccessibleWP Images

WordPress plugin AccessibleWP Images scored 94% from 54 tests.

About plugin

  • Plugin page: accessiblewp-images
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3.2
  • WordPress version: 5.9.2
  • First release: Mar 5, 2020
  • Latest release: Mar 5, 2020
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: accessiblewp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 549 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼295.45ms] Passed 4 tests

A check of server-side resources used by AccessibleWP Images
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0152.18 ▲1.96
Dashboard /wp-admin3.43 ▲0.0234.10 ▲0.48
Posts /wp-admin/edit.php3.65 ▲0.0137.13 ▲0.73
Add New Post /wp-admin/post-new.php6.90 ▼0.0796.14 ▼1,183.38
Media Library /wp-admin/upload.php3.30 ▲0.0126.30 ▲0.37
Images /wp-admin/admin.php?page=acwp-images3.2822.54
AccessibleWP /wp-admin/admin.php?page=accessible-wp3.2721.28

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for AccessibleWP Images
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,801 ▲4716.01 ▲0.315.80 ▼0.472.21 ▼0.97
Dashboard /wp-admin2,931 ▲706.20 ▲0.04115.76 ▼17.25166.44 ▲3.58
Posts /wp-admin/edit.php2,727 ▲363.11 ▼0.1361.88 ▼2.71144.06 ▲0.78
Add New Post /wp-admin/post-new.php1,780 ▲11920.95 ▼1.81413.81 ▼21.55164.50 ▲7.27
Media Library /wp-admin/upload.php1,731 ▲335.52 ▲0.06124.76 ▼16.61208.30 ▲22.89
Images /wp-admin/admin.php?page=acwp-images1,1492.4454.68151.93
AccessibleWP /wp-admin/admin.php?page=accessible-wp1,1012.4353.20128.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=accessible-wp
    • > Network (severe)
    wp-content/plugins/accessiblewp-images/assets/admin.css?ver=5.9.2 - 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=accessible-wp
    • > 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)


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: wcag, images, a11y, web-accessibility, accessibility...

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

"AccessibleWP Images" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin199 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ 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 were not PNG files found in your plugin