84% media-alt-renamer

Code Review | Media Alt Renamer

WordPress plugin Media Alt Renamer scored84%from 54 tests.

About plugin

  • Plugin page: media-alt-renamer
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Sep 16, 2016
  • Latest release: Sep 10, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: TigrouMeow (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /7,426 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
This plugin's installer ran successfully

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

Server-side resources used by Media Alt Renamer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.11 ▼3.21
Dashboard /wp-admin3.33 ▲0.0247.10 ▼1.20
Posts /wp-admin/edit.php3.38 ▲0.0245.20 ▲1.32
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.25 ▼6.37
Media Library /wp-admin/upload.php3.26 ▲0.0243.99 ▲10.59

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Media Alt Renamer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.22 ▼1.161.77 ▲0.2140.93 ▲0.29
Dashboard /wp-admin2,208 ▲235.84 ▼0.0595.67 ▼7.6938.01 ▼6.38
Posts /wp-admin/edit.php2,091 ▲22.05 ▼0.0033.88 ▼3.3832.10 ▼3.08
Add New Post /wp-admin/post-new.php1,539 ▲618.25 ▼5.12609.02 ▼61.7761.66 ▲1.20
Media Library /wp-admin/upload.php1,396 ▲84.14 ▼0.04112.18 ▲10.1342.42 ▼1.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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 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
  • 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/media-alt-renamer/mar_core.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (Media Alt Renamer)
The official readme.txt might help

media-alt-renamer/media-alt-renamer.php 92% from 13 tests

The principal PHP file in "Media Alt Renamer" v. 0.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin321 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP55333246
CSS118475

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.19
Average class complexity3.25
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
2 PNG files occupy 0.18MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png162.89KB41.27KB▼ 74.66%
meow-common/img/meowapps.png26.54KB3.70KB▼ 86.06%