83% product-image-hover-effects-wooc-wpshare247

Code Review | Product Image Hover Effects WOOC - WPSHARE247

WordPress plugin Product Image Hover Effects WOOC - WPSHARE247 scored83%from 54 tests.

About plugin

  • Plugin page: product-image-hov...
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Jan 2, 2021
  • Latest release: May 2, 2023
  • Number of updates: 29
  • Update frequency: every 29.3 days
  • Top authors: website366 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /12,042 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▲1.27ms] Passed 4 tests

A check of server-side resources used by Product Image Hover Effects WOOC - WPSHARE247
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0944.13 ▼0.54
Dashboard /wp-admin3.39 ▲0.0955.38 ▼0.98
Posts /wp-admin/edit.php3.51 ▲0.1572.25 ▲19.84
Add New Post /wp-admin/post-new.php5.99 ▲0.1197.05 ▲3.48
Media Library /wp-admin/upload.php3.31 ▲0.0940.92 ▲3.11
Configure Piew /wp-admin/admin.php?page=ws247-piew-options3.3339.69

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Product Image Hover Effects WOOC - WPSHARE247
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲13614.01 ▼0.3611.87 ▲10.1940.56 ▼3.56
Dashboard /wp-admin2,216 ▲364.88 ▼0.8099.09 ▲7.9740.88 ▲0.26
Posts /wp-admin/edit.php2,130 ▲332.30 ▲0.3248.25 ▲8.3540.99 ▲4.21
Add New Post /wp-admin/post-new.php1,542 ▲1623.65 ▼0.14686.59 ▼34.2136.09 ▼32.19
Media Library /wp-admin/upload.php1,418 ▲154.43 ▲0.20102.08 ▼3.6743.29 ▼1.11
Configure Piew /wp-admin/admin.php?page=ws247-piew-options2,3293.3192.8722.78

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/product-image-hover-effects-wooc-wpshare247/inc/theme_functions.php:19
    • > PHP Notice
      Undefined variable: field in wp-content/plugins/product-image-hover-effects-wooc-wpshare247/inc/tabs/group_effect.php on line 1
    • > PHP Notice
      Undefined variable: checked in wp-content/plugins/product-image-hover-effects-wooc-wpshare247/inc/tabs/group_effect.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/product-image-hover-effects-wooc-wpshare247/inc/tabs/tab_pro_general.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-image-hover-effects-wooc-wpshare247/inc/class.setting.page.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/product-image-hover-effects-wooc-wpshare247/inc/option-form-template.php:8
    • > PHP Notice
      Undefined variable: field in wp-content/plugins/product-image-hover-effects-wooc-wpshare247/inc/tabs/group_effect.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/product-image-hover-effects-wooc-wpshare247/inc/tabs/group_effect.php:6
    • > PHP Notice
      Undefined variable: checked in wp-content/plugins/product-image-hover-effects-wooc-wpshare247/inc/tabs/group_gallery.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/product-image-hover-effects-wooc-wpshare247/inc/define.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === product-image-hover-effects-wooc-wpshare247 === )
  • Screenshots: These screenshots lack descriptions #5, #6 in product-image-hover-effects-wooc-wpshare247/assets to your readme.txt
Please take inspiration from this readme.txt

product-image-hover-effects-wooc-wpshare247/wooc-product-img-effects-wpshare247.php 85% from 13 tests

The primary PHP file in "Product Image Hover Effects WOOC - WPSHARE247" version 1.0.7 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("product-image-hover-effects-wooc-wpshare247.php" instead of "wooc-product-img-effects-wpshare247.php")

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
There were no executable files found in this plugin10,057 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript122,3641,2907,643
CSS9288511,646
PHP911935687
PO File133181

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity21.00
▷ Minimum class complexity4.00
▷ Maximum class complexity38.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants777.78%
▷ Class constants222.22%
▷ Public constants2100.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