83% slide-box

Code Review | Scroll Triggered Box / Slide Box

WordPress plugin Scroll Triggered Box / Slide Box scored83%from 54 tests.

About plugin

  • Plugin page: slide-box
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 3, 2017
  • Latest release: Jul 25, 2023
  • Number of updates: 28
  • Update frequency: every 84.3 days
  • Top authors: zotabox (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /10,258 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.02MB] [CPU: ▼2.28ms] Passed 4 tests

An overview of server-side resources used by Scroll Triggered Box / Slide Box
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.75 ▲2.17
Dashboard /wp-admin3.32 ▲0.0250.91 ▲2.05
Posts /wp-admin/edit.php3.37 ▲0.0247.49 ▲2.21
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.76 ▼12.90
Media Library /wp-admin/upload.php3.24 ▲0.0233.74 ▼0.44

Server storage [IO: ▲0.18MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 14 new options
New WordPress options
ztb_status_disconnect
widget_theysaidso_widget
widget_recent-comments
ztb_source
access_key
ztb_email
db_upgraded
ztb_domainid
widget_recent-posts
ztb_id
...

Browser metrics Passed 4 tests

Checking browser requirements for Scroll Triggered Box / Slide Box
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.28 ▼1.091.65 ▲0.0541.24 ▲1.41
Dashboard /wp-admin2,222 ▲374.91 ▼0.9595.66 ▼16.5986.50 ▲41.91
Posts /wp-admin/edit.php2,108 ▲192.01 ▲0.0334.76 ▼1.2932.80 ▼0.11
Add New Post /wp-admin/post-new.php1,684 ▲15622.53 ▲4.25752.85 ▲130.1849.71 ▼0.98
Media Library /wp-admin/upload.php1,404 ▲134.28 ▲0.0999.82 ▲3.3266.72 ▲21.41

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 14 options
    • ztb_domainid
    • ztb_status_disconnect
    • widget_recent-comments
    • widget_theysaidso_widget
    • ztb_source
    • db_upgraded
    • ztb_status_message
    • ztb_access_key
    • theysaidso_admin_options
    • ztb_email
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slide-box/slidebox.php:15

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

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (EU Cookie Notification Settings), #2 (Display Rules), #3 (Zotabox Dashboard)
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

slide-box/slidebox.php 92% from 13 tests

The entry point to "Scroll Triggered Box / Slide Box" version 1.1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("slide-box.php" instead of "slidebox.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected501 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS234273
PHP11915188
JavaScript14040

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
zotabox.png3.19KB0.44KB▼ 86.31%
assets/images/bg_body.png22.84KB9.83KB▼ 56.98%
assets/images/check.png2.96KB0.37KB▼ 87.47%
assets/images/logo-zotabox.png5.45KB2.43KB▼ 55.35%