78% swiper-for-visual-composer

Code Review | Swiper - 3D Coverflow Effect for visual composer [WPBakery Page Builder]

WordPress plugin Swiper - 3D Coverflow Effect for visual composer [WPBakery Page Builder] scored78%from 54 tests.

About plugin

  • Plugin page: swiper-for-visual...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 1, 2020
  • Latest release: May 1, 2020
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: xblue55 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,864 total downloads

Benchmarks

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.01MB] [CPU: ▼4.15ms] Passed 4 tests

Analyzing server-side resources used by Swiper - 3D Coverflow Effect for visual composer [WPBakery Page Builder]
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.08 ▼10.01
Dashboard /wp-admin3.31 ▲0.0154.61 ▲1.09
Posts /wp-admin/edit.php3.36 ▲0.0155.44 ▲0.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.54 ▼8.65
Media Library /wp-admin/upload.php3.24 ▲0.0140.71 ▲2.42

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Swiper - 3D Coverflow Effect for visual composer [WPBakery Page Builder]
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.29 ▼0.121.65 ▼0.7742.36 ▼1.72
Dashboard /wp-admin2,212 ▲385.54 ▼0.0688.29 ▲2.1639.56 ▲0.06
Posts /wp-admin/edit.php2,118 ▲182.00 ▼0.0137.40 ▼2.6138.64 ▲1.23
Add New Post /wp-admin/post-new.php1,540 ▲1423.10 ▼0.67659.29 ▼56.1354.68 ▲1.31
Media Library /wp-admin/upload.php1,417 ▲204.23 ▼0.0194.26 ▼25.9348.62 ▲1.26

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/swiper-for-visual-composer/render/sfvc_swiper.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_post_thumbnail() in wp-content/plugins/swiper-for-visual-composer/render/includes/coverflow-effect-3d.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/swiper-for-visual-composer/index.php:16

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Donate link: Invalid URI ("paypal.me/xblue55")
The official readme.txt might help

swiper-for-visual-composer/index.php 92% from 13 tests

The main PHP file in "Swiper - 3D Coverflow Effect for visual composer [WPBakery Page Builder]" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("swiper-for-visual-composer.php" instead of "index.php")

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
No dangerous file extensions were detected304 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP31114197
CSS2111187
Markdown19019
JavaScript10121

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.50
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity7.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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 1.00MB with 0.68MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/swiper.png20.00KB5.95KB▼ 70.26%
screenshot.png1,002.91KB332.15KB▼ 66.88%