79% dp-alterminator-missing-alt-manager

Code Review | DP ALTerminator - Missing ALT manager

WordPress plugin DP ALTerminator - Missing ALT manager scored79%from 54 tests.

About plugin

  • Plugin page: dp-alterminator-m...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.1.0
  • WordPress version: 6.3.1
  • First release: Sep 7, 2014
  • Latest release: Dec 18, 2014
  • Number of updates: 16
  • Update frequency: every 6.4 days
  • Top authors: mylo2h2s (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /4,846 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by DP ALTerminator - Missing ALT manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.03 ▲0.08
Dashboard /wp-admin3.31 ▼0.0352.05 ▼13.81
Posts /wp-admin/edit.php3.37 ▲0.0147.36 ▼3.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.79 ▼20.35
Media Library /wp-admin/upload.php3.24 ▲0.0132.66 ▼2.98

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
dp_alterminator_w
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

DP ALTerminator - Missing ALT manager: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.461.74 ▼0.1243.28 ▼2.91
Dashboard /wp-admin2,199 ▲225.63 ▼0.0388.50 ▼13.5642.70 ▲1.59
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0133.31 ▼2.3533.70 ▼3.33
Add New Post /wp-admin/post-new.php1,536 ▲823.36 ▲0.35647.84 ▼35.4756.03 ▲3.12
Media Library /wp-admin/upload.php1,407 ▲74.20 ▼0.13100.55 ▼5.1442.42 ▼0.78
DP ALTerminator /wp-admin/dp-alterminator-missing-alt-manager.php260.420.1015.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • dp_alterminator_w
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dp-alterminator-missing-alt-manager/dp-alterminator-missing-alt-manager-opt.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/dp-alterminator-missing-alt-manager.php
    • > Network (severe)
    wp-admin/dp-alterminator-missing-alt-manager.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 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
10 plugin tags: seo, automatic, pictures, post, optimize...

dp-alterminator-missing-alt-manager/dp-alterminator-missing-alt-manager.php Passed 13 tests

The main PHP file in "DP ALTerminator - Missing ALT manager" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
122 characters long description:
Adds ALT tags to your content images when they're missing or empty. It's pattern can be customized with simple shortcodes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected98 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2281698

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin