84% advanced-image-comparison-for-elementor

Code Review | Advanced Image Comparison for Elementor

WordPress plugin Advanced Image Comparison for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: advanced-image-co...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2.2
  • WordPress version: 6.3.1
  • First release: May 21, 2021
  • Latest release: Jun 13, 2023
  • Number of updates: 7
  • Update frequency: every 107.6 days
  • Top authors: ruhel241 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /1,380 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Advanced Image Comparison for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.14 ▲3.60
Dashboard /wp-admin3.34 ▼0.0150.29 ▼10.14
Posts /wp-admin/edit.php3.39 ▲0.0345.64 ▼1.92
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.48 ▲1.51
Media Library /wp-admin/upload.php3.26 ▲0.0335.87 ▲3.48

Server storage [IO: ▲0.06MB] [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: 10 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Image Comparison for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.16 ▼1.221.75 ▲0.0643.14 ▼4.10
Dashboard /wp-admin2,245 ▲605.86 ▲0.9697.18 ▼20.9737.76 ▼0.66
Posts /wp-admin/edit.php2,106 ▲172.01 ▲0.0139.88 ▼0.7034.45 ▼1.69
Add New Post /wp-admin/post-new.php1,546 ▲1323.08 ▼0.02623.92 ▼52.2354.46 ▲0.98
Media Library /wp-admin/upload.php1,403 ▲184.18 ▲0.0197.72 ▼3.7341.16 ▼1.44

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/advanced-image-comparison-for-elementor/widgets/AICImageComparisonWidget.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/advanced-image-comparison-for-elementor/advanced-image-comparison-for-elementor.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Requires php: The plugin version is formatted incorrectly
The official readme.txt might help

advanced-image-comparison-for-elementor/advanced-image-comparison-for-elementor.php Passed 13 tests

"Advanced Image Comparison for Elementor" version 2.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
56 characters long description:
Advanced Image Comparison for elementor wordpress plugin

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
Everything looks great! No dangerous files found in this plugin791 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity6.50
▷ Minimum class complexity2.00
▷ Maximum class complexity11.00
Average method complexity1.65
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
▷ Static methods15.56%
▷ Public methods1688.89%
▷ Protected methods211.11%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions2100.00%
▷ Global constants457.14%
▷ Class constants342.86%
▷ 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 were not PNG files found in your plugin