83% sticky-images-for-elementor

Code Review | Sticky images for Elementor

WordPress plugin Sticky images for Elementor scored 83% from 54 tests.

About plugin

  • Plugin page: sticky-images-for...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 11, 2022
  • Latest release: Feb 3, 2023
  • Number of updates: 6
  • Update frequency: every 39.7 days
  • Top authors: migaweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 288 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Sticky images for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.11 ▼3.19
Dashboard /wp-admin3.31 ▲0.0043.26 ▼2.78
Posts /wp-admin/edit.php3.36 ▲0.0045.06 ▼6.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.65 ▼1.53
Media Library /wp-admin/upload.php3.23 ▲0.0035.97 ▼2.12

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sticky images for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.231.79 ▲0.0343.60 ▲3.68
Dashboard /wp-admin2,209 ▲275.85 ▲0.9899.47 ▼11.8839.59 ▼1.92
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0438.71 ▼5.4737.51 ▲2.82
Add New Post /wp-admin/post-new.php1,535 ▲1623.28 ▼0.04637.59 ▼64.8153.62 ▼6.62
Media Library /wp-admin/upload.php1,382 ▼94.14 ▼0.0493.71 ▼5.9039.96 ▼0.36

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/sticky-images-for-elementor/widgets/StickyImages.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sticky-images-for-elementor/miga_sticky_images.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: addons, elementor addons, elementor, images, elementor widget...

sticky-images-for-elementor/miga_sticky_images.php 77% from 13 tests

The primary PHP file in "Sticky images for Elementor" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "5.2")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sticky-images-for-elementor.php" instead of "miga_sticky_images.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin244 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22220133
JavaScript114084
CSS17027

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods777.78%
▷ Protected methods222.22%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected