83% scrollmagic-for-wp-bakery

Code Review | Scroll Magic Addon for WPBakery Page Builde

WordPress plugin Scroll Magic Addon for WPBakery Page Builde scored 83% from 54 tests.

About plugin

  • Plugin page: scrollmagic-for-w...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Apr 22, 2020
  • Latest release: Apr 22, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: magicpages (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 2,407 total downloads

Benchmarks

Plugin footprint 82% 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 gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▲1.87ms] Passed 4 tests

A check of server-side resources used by Scroll Magic Addon for WPBakery Page Builde
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1543.44 ▲0.36
Dashboard /wp-admin3.45 ▲0.1567.02 ▲12.23
Posts /wp-admin/edit.php3.50 ▲0.1553.36 ▲0.91
Add New Post /wp-admin/post-new.php6.03 ▲0.15102.49 ▲7.93
Media Library /wp-admin/upload.php3.37 ▲0.1437.18 ▼1.73

Server storage [IO: ▲1.73MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Just a few items left to fix
  • The plugin illegally modified 7 files (0.00KB) outside of "wp-content/plugins/scrollmagic-for-wp-bakery/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/scrollmagic-for-wp-bakery/assets/lib/gsap/SVG-edit_files/jquery.min.js.t\341\272\243i xu\341\273\221ng"
    • (new file) "wp-content/plugins/scrollmagic-for-wp-bakery/assets/lib/gsap/SVG-edit_files/redirect-on-lacking-support.js.t\341\272\243i xu\341\273\221ng"
    • (new file) "wp-content/plugins/scrollmagic-for-wp-bakery/assets/lib/gsap/SVG-edit_files/svgedit-config-iife.js.t\341\272\243i xu\341\273\221ng"
    • (new file) "wp-content/plugins/scrollmagic-for-wp-bakery/assets/lib/gsap/SVG-edit_files/jquery-ui-1.8.17.custom.min.js.t\341\272\243i xu\341\273\221ng"
    • (new file) "wp-content/plugins/scrollmagic-for-wp-bakery/assets/lib/gsap/SVG-edit_files/minified.js.t\341\272\243i xu\341\273\221ng"
    • (new file) "wp-content/plugins/scrollmagic-for-wp-bakery/assets/lib/gsap/SVG-edit_files/dom-polyfill.js.t\341\272\243i xu\341\273\221ng"
    • (new file) "wp-content/plugins/scrollmagic-for-wp-bakery/assets/lib/gsap/SVG-edit_files/runtime.js.t\341\272\243i xu\341\273\221ng"
Filesystem: 141 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Scroll Magic Addon for WPBakery Page Builde
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼1113.23 ▲0.101.67 ▼0.5842.99 ▼2.69
Dashboard /wp-admin2,209 ▼04.82 ▼0.06105.23 ▼14.8939.42 ▼4.02
Posts /wp-admin/edit.php2,068 ▼212.03 ▲0.0139.17 ▲5.3136.36 ▲1.59
Add New Post /wp-admin/post-new.php1,533 ▼023.51 ▲0.21659.06 ▼34.4065.46 ▼10.06
Media Library /wp-admin/upload.php1,391 ▲64.18 ▼0.0798.23 ▼3.7941.48 ▲0.16

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 81× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/scrollmagic-for-wp-bakery/php/shortcodes/vc_empty_space.php
    • > /wp-content/plugins/scrollmagic-for-wp-bakery/php/shortcodes/vc_icon.php
    • > /wp-content/plugins/scrollmagic-for-wp-bakery/php/shortcodes/vc_wp_calendar.php
    • > /wp-content/plugins/scrollmagic-for-wp-bakery/php/shortcodes/vc_tab.php
    • > /wp-content/plugins/scrollmagic-for-wp-bakery/php/shortcodes/vc_basic_grid_filter.php
    • > /wp-content/plugins/scrollmagic-for-wp-bakery/php/shortcodes/vc_tabs.php
    • > /wp-content/plugins/scrollmagic-for-wp-bakery/php/shortcodes/vc_tta_global.php
    • > /wp-content/plugins/scrollmagic-for-wp-bakery/php/shortcodes/vc_gitem_block.php
    • > /wp-content/plugins/scrollmagic-for-wp-bakery/php/shortcodes/vc_wp_categories.php
    • > /wp-content/plugins/scrollmagic-for-wp-bakery/php/shortcodes/vc_tweetmeme.php

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 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Create.), #2 (scroll.)
  • Tags: You are using too many tags: 13 tag instead of maximum 10
Please take inspiration from this readme.txt

scrollmagic-for-wp-bakery/index.php 77% from 13 tests

"Scroll Magic Addon for WPBakery Page Builde" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("scrollmagic-for-wp-bakery.php" instead of "index.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected10,118 lines of code in 122 files:
LanguageFilesBlank linesComment linesLines of code
PHP877721,1825,243
JavaScript233031,7702,665
CSS8278891,521
HTML12349670
Sass31019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity10.20
▷ Minimum class complexity3.00
▷ Maximum class complexity35.00
Average method complexity3.42
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.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

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin/images/drawsvg.png4.47KB3.53KB▼ 20.93%
assets/admin/images/splittext.png6.50KB3.01KB▼ 53.72%
assets/admin/images/sequence.png9.46KB3.70KB▼ 60.88%