78% image-hover-effect-free-ocoder

Code Review | VC Image Hover Effect oCoder Free

WordPress plugin VC Image Hover Effect oCoder Free scored78%from 54 tests.

About plugin

  • Plugin page: image-hover-effec...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7
  • WordPress version: 6.3.1
  • First release: Mar 16, 2017
  • Latest release: Mar 22, 2017
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: trungstormsix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,034 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.03MB] [CPU: ▼11.39ms] Passed 4 tests

Analyzing server-side resources used by VC Image Hover Effect oCoder Free
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0227.78 ▼13.89
Dashboard /wp-admin3.37 ▲0.0251.61 ▼17.18
Posts /wp-admin/edit.php3.42 ▲0.0652.01 ▼2.60
Add New Post /wp-admin/post-new.php5.95 ▲0.0689.25 ▼11.87
Media Library /wp-admin/upload.php3.29 ▲0.0643.39 ▲5.82

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for VC Image Hover Effect oCoder Free
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲15213.46 ▼0.979.54 ▲7.8246.22 ▲6.00
Dashboard /wp-admin2,203 ▲295.64 ▲0.0385.88 ▼7.7437.81 ▼10.53
Posts /wp-admin/edit.php2,117 ▲141.98 ▼0.0539.53 ▼1.5137.90 ▲2.87
Add New Post /wp-admin/post-new.php1,540 ▲1223.20 ▲0.04655.56 ▼35.3355.85 ▲7.08
Media Library /wp-admin/upload.php1,414 ▲144.19 ▲0.0199.15 ▼2.1548.29 ▼1.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Please fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/image-hover-effect-free-ocoder/template/team_member_box.php
    • > /wp-content/plugins/image-hover-effect-free-ocoder/vc_team_hover_free.php
    • > /wp-content/plugins/image-hover-effect-free-ocoder/template/round.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_add_shortcode_param() in wp-content/plugins/image-hover-effect-free-ocoder/admin/params/slider/slider-params.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/image-hover-effect-free-ocoder/template/shadow_effect.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/image-hover-effect-free-ocoder/template/circle.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/image-hover-effect-free-ocoder/template/square.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/image-hover-effect-free-ocoder/template/default.php:3
    • > PHP Notice
      Undefined variable: circle_effect in wp-content/plugins/image-hover-effect-free-ocoder/template/circle.php on line 2
    • > PHP Notice
      Undefined variable: square_effect in wp-content/plugins/image-hover-effect-free-ocoder/template/square.php on line 2

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: image hover, team hover, image effect, team social

image-hover-effect-free-ocoder/vc_team_hover_free.php 85% from 13 tests

This is the main PHP file of "VC Image Hover Effect oCoder Free" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("image-hover-effect-free-ocoder.php" instead of "vc_team_hover_free.php")
  • Description: The description should be shorter than 140 characters (currently 225 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin7,442 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
CSS10180426,040
PHP95987802
SVG100565
JavaScript211835

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.90
Average class complexity9.50
▷ Minimum class complexity3.00
▷ Maximum class complexity16.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.72MB with 0.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png430.66KB95.69KB▼ 77.78%
admin/css/img/kobra_itemicon.png3.22KB0.69KB▼ 78.52%
assets/icon_team_hover.png5.58KB1.77KB▼ 68.23%
admin/css/img/kobra_wappericon.png3.30KB0.81KB▼ 75.58%
screenshot-2.png299.21KB69.49KB▼ 76.77%