78% hover-effects-bundle-visual-composer-addon

Code Review | Hover Effects Bundle Visual Composer Addon

WordPress plugin Hover Effects Bundle Visual Composer Addon scored78%from 54 tests.

About plugin

  • Plugin page: hover-effects-bun...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.9
  • WordPress version: 6.3.1
  • First release: Dec 7, 2017
  • Latest release: Dec 7, 2017
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: uielements (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /827 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Hover Effects Bundle Visual Composer Addon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0150.93 ▲4.90
Dashboard /wp-admin3.31 ▼0.0350.92 ▼14.94
Posts /wp-admin/edit.php3.37 ▲0.0152.73 ▼5.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.40 ▼9.52
Media Library /wp-admin/upload.php3.24 ▲0.0140.06 ▲0.58

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Hover Effects Bundle Visual Composer Addon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.35 ▼0.411.92 ▲0.1337.54 ▼11.55
Dashboard /wp-admin2,207 ▲335.69 ▲0.1192.21 ▲2.6742.69 ▼2.27
Posts /wp-admin/edit.php2,115 ▲122.02 ▼0.0042.43 ▼1.4633.79 ▼6.00
Add New Post /wp-admin/post-new.php1,538 ▲922.94 ▼0.37650.55 ▼15.7655.25 ▲2.09
Media Library /wp-admin/upload.php1,406 ▲64.20 ▲0.0195.94 ▼6.0744.26 ▲0.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
  • 51× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style39.php
    • > /wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style24.php
    • > /wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style45.php
    • > /wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style41.php
    • > /wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style5.php
    • > /wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style26.php
    • > /wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style22.php
    • > /wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style3.php
    • > /wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style14.php
    • > /wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style25.php
  • 355× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style2.php on line 3
    • > PHP Notice
      Undefined variable: desc_color in wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style5.php on line 5
    • > PHP Notice
      Undefined variable: link in wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style25.php on line 5
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style12.php on line 2
    • > PHP Notice
      Undefined variable: link in wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style35.php on line 6
    • > PHP Notice
      Undefined variable: link in wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style48.php on line 7
    • > PHP Notice
      Undefined variable: icon in wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style46.php on line 2
    • > PHP Notice
      Undefined variable: link_target in wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style20.php on line 6
    • > PHP Notice
      Undefined variable: icon in wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style29.php on line 2
    • > PHP Notice
      Undefined variable: desc_color in wp-content/plugins/hover-effects-bundle-visual-composer-addon/templates/image-hover-effects/style25.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: visual composer, images, image hover, addons, vc...

hover-effects-bundle-visual-composer-addon/addons.php 85% from 13 tests

The main file in "Hover Effects Bundle Visual Composer Addon" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hover-effects-bundle-visual-composer-addon.php" instead of "addons.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin4,839 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
CSS154304,310
PHP532215529

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.01
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods120.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin