90% image-compare

Code Review | Image Compare

WordPress plugin Image Compare scored 90% from 54 tests.

About plugin

  • Plugin page: image-compare
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Nov 5, 2022
  • Latest release: Apr 7, 2023
  • Number of updates: 4
  • Update frequency: every 38.5 days
  • Top authors: habibur899 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 455 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▲1.44ms] Passed 4 tests

A check of server-side resources used by Image Compare
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.46 ▲0.88
Dashboard /wp-admin3.31 ▲0.0062.25 ▲3.47
Posts /wp-admin/edit.php3.36 ▲0.0061.50 ▲3.53
Add New Post /wp-admin/post-new.php5.89 ▲0.00116.60 ▲7.31
Media Library /wp-admin/upload.php3.23 ▲0.0040.17 ▼2.12

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Image Compare
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲1813.59 ▼1.271.74 ▼0.0246.15 ▼0.61
Dashboard /wp-admin2,224 ▲245.79 ▲0.69110.65 ▲3.5637.39 ▼2.78
Posts /wp-admin/edit.php2,106 ▲172.19 ▲0.2242.46 ▲0.5132.95 ▼3.96
Add New Post /wp-admin/post-new.php1,527 ▼617.76 ▼5.40754.17 ▲104.1758.75 ▲8.32
Media Library /wp-admin/upload.php1,409 ▲214.22 ▲0.04106.51 ▼2.3242.59 ▲0.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

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)
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #2, #3 in image-compare/assets to your readme.txt
The official readme.txt is a good inspiration

image-compare/image-compare.php Passed 13 tests

"Image Compare" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
54 characters long description:
You can use this image compare plugin completely free.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,050 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
▷ Static methods14.76%
▷ Public methods1990.48%
▷ Protected methods29.52%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin