89% auto-shadow-on-post-images

Code Review | Auto Shadow On Post Images

WordPress plugin Auto Shadow On Post Images scored89%from 54 tests.

About plugin

  • Plugin page: auto-shadow-on-po...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Aug 29, 2021
  • Latest release: Dec 12, 2021
  • Number of updates: 5
  • Update frequency: every 24.2 days
  • Top authors: heyanirban (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /410 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Auto Shadow On Post Images
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.95 ▼2.14
Dashboard /wp-admin3.31 ▼0.0451.59 ▼19.01
Posts /wp-admin/edit.php3.36 ▲0.0049.07 ▲2.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.30 ▼17.22
Media Library /wp-admin/upload.php3.23 ▲0.0033.82 ▼4.60

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Auto Shadow On Post Images
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.40 ▼0.141.83 ▼0.1044.48 ▲2.57
Dashboard /wp-admin2,198 ▲185.58 ▼0.0396.28 ▼0.4240.13 ▼4.70
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0540.85 ▲3.5135.90 ▲0.14
Add New Post /wp-admin/post-new.php1,526 ▼023.51 ▲0.43641.22 ▼8.8549.76 ▼6.84
Media Library /wp-admin/upload.php1,400 ▼34.16 ▼0.0295.45 ▼6.7145.27 ▲1.95

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention: Please take inspiration from this readme.txt

auto-shadow-on-post-images/auto-shadow-post-images.php 92% from 13 tests

The main PHP file in "Auto Shadow On Post Images" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("auto-shadow-on-post-images.php" instead of "auto-shadow-post-images.php")

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
There were no executable files found in this plugin36 lines of code in 2 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
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin