79% easyalttext

Code Review | EasyAltText

WordPress plugin EasyAltText scored79%from 54 tests.

About plugin

  • Plugin page: easyalttext
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.2.4
  • WordPress version: 6.3.1
  • First release: Aug 20, 2015
  • Latest release: Aug 21, 2015
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: RHNorskov (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,390 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.72ms] Passed 4 tests

Analyzing server-side resources used by EasyAltText
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0141.67 ▼2.59
Dashboard /wp-admin3.58 ▼0.0552.10 ▼17.78
Posts /wp-admin/edit.php3.69 ▲0.0153.82 ▲2.19
Add New Post /wp-admin/post-new.php6.16 ▲0.0191.04 ▼10.85
Media Library /wp-admin/upload.php3.50 ▲0.0142.57 ▼7.67
EasyAltText /wp-admin/upload.php?page=easyalttext_admin_menu3.4541.69

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for EasyAltText
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.38 ▼0.081.73 ▼0.4444.85 ▼2.04
Dashboard /wp-admin2,210 ▲305.72 ▲0.0186.29 ▼11.4341.12 ▼4.31
Posts /wp-admin/edit.php2,115 ▲152.07 ▲0.0637.79 ▼1.8735.31 ▲0.16
Add New Post /wp-admin/post-new.php1,537 ▼823.36 ▲0.32673.40 ▲1.2159.27 ▲4.39
Media Library /wp-admin/upload.php1,412 ▲154.26 ▲0.05111.40 ▼31.1745.75 ▼8.19
EasyAltText /wp-admin/upload.php?page=easyalttext_admin_menu8081.8726.9328.80

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • 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 server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/upload.php?page=easyalttext_admin_menu
    • > Notice in wp-content/plugins/easyalttext/easyalttext.php+54
    Undefined index: update
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/upload.php?page=easyalttext_admin_menu
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easyalttext/easyalttext.php:11

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: alt text, easy-alt-text, easyalttext, easy

easyalttext/easyalttext.php Passed 13 tests

The main PHP file in "EasyAltText" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
47 characters long description:
A plugin to easily edit image alt text in bulk.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected215 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1233119
PHP111876
JavaScript13020

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected