79% altchecker

Code Review | Alt checker

WordPress plugin Alt checker scored79%from 54 tests.

About plugin

  • Plugin page: altchecker
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 6, 2014
  • Latest release: Sep 1, 2023
  • Number of updates: 26
  • Update frequency: every 127.4 days
  • Top authors: infoalap (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /2,539 total downloads


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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.49ms] Passed 4 tests

Analyzing server-side resources used by Alt checker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.70 ▼7.91
Dashboard /wp-admin3.33 ▲0.0345.30 ▼1.18
Posts /wp-admin/edit.php3.39 ▲0.0348.01 ▲1.32
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.79 ▼10.20
Media Library /wp-admin/upload.php3.26 ▲0.0235.88 ▲3.09
Alt Checker /wp-admin/options-general.php?page=altchecker-options3.2028.27

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Alt checker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.29 ▼1.391.66 ▼0.2241.57 ▼2.22
Dashboard /wp-admin2,210 ▲195.90 ▼0.00107.14 ▼2.9738.73 ▼3.21
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0038.92 ▲5.5133.29 ▼1.38
Add New Post /wp-admin/post-new.php1,517 ▼1617.48 ▼5.88694.58 ▲47.0956.43 ▼6.29
Media Library /wp-admin/upload.php1,395 ▲74.19 ▲0.0294.11 ▼0.9243.82 ▲3.46
Alt Checker /wp-admin/options-general.php?page=altchecker-options7482.1822.3823.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=altchecker-options
    • > Notice in wp-content/plugins/altchecker/altchecker.php+83
    Undefined variable: query_string

SRP 50% 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/altchecker/altchecker.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: blind, images, post, accessibility, admin

altchecker/altchecker.php Passed 13 tests

The primary PHP file in "Alt checker" version 1.3 is used by WordPress to initiate all plugin functionality
11 characters long description:
Alt checker

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin180 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File1172353

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin