88% 3d-slider-slicebox

Code Review | 3D Slider Slice Box

WordPress plugin 3D Slider Slice Box scored 88% from 54 tests.

About plugin

  • Plugin page: 3d-slider-slicebox
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 5.9.2
  • First release: Apr 11, 2013
  • Latest release: Apr 19, 2013
  • Number of updates: 22
  • Update frequency: every 0.4 days
  • Top authors: ezhil (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

100+ active / 14,858 total downloads

Benchmarks

Plugin footprint Passed 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.04MB] [CPU: ▼302.52ms] Passed 4 tests

A check of server-side resources used by 3D Slider Slice Box
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0659.72 ▲3.03
Dashboard /wp-admin3.47 ▲0.0636.97 ▲0.06
Posts /wp-admin/edit.php3.70 ▲0.0644.32 ▲0.41
Add New Post /wp-admin/post-new.php6.94 ▼0.0395.35 ▼1,207.60
Media Library /wp-admin/upload.php3.36 ▲0.0625.83 ▼2.93
3D Slider /wp-admin/options-general.php?page=sboptions3.3028.68

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by 3D Slider Slice Box
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,873 ▲11916.47 ▲0.849.04 ▲2.492.39 ▼0.86
Dashboard /wp-admin2,894 ▲366.15 ▼0.02119.49 ▼12.28158.52 ▼2.79
Posts /wp-admin/edit.php2,693 ▲53.23 ▲0.2063.09 ▼4.28137.68 ▼13.44
Add New Post /wp-admin/post-new.php1,693 ▲3218.71 ▲2.69382.73 ▼40.76158.96 ▼0.66
Media Library /wp-admin/upload.php1,700 ▲25.53 ▲0.06147.94 ▲4.84195.98 ▲14.14
3D Slider /wp-admin/options-general.php?page=sboptions1,6182.3655.79136.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=sboptions
    • > User deprecated in wp-includes/functions.php+5326
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=sboptions
    • > User deprecated in wp-includes/functions.php+5326
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=sboptions
    • > Notice in wp-content/plugins/3d-slider-slicebox/sliderbox.php+161
    Undefined index: link1
    • > GET request to /wp-admin/options-general.php?page=sboptions
    • > Notice in wp-content/plugins/3d-slider-slicebox/sliderbox.php+163
    Undefined index: name1
    • > GET request to /wp-admin/options-general.php?page=sboptions
    • > Notice in wp-content/plugins/3d-slider-slicebox/sliderbox.php+165
    Undefined index: perma1
    • > GET request to /wp-admin/options-general.php?page=sboptions
    • > Notice in wp-content/plugins/3d-slider-slicebox/sliderbox.php+161
    Undefined index: link2
    • > GET request to /wp-admin/options-general.php?page=sboptions
    • > Notice in wp-content/plugins/3d-slider-slicebox/sliderbox.php+163
    Undefined index: name2
    • > GET request to /wp-admin/options-general.php?page=sboptions
    • > Notice in wp-content/plugins/3d-slider-slicebox/sliderbox.php+165
    Undefined index: perma2
    • > GET request to /wp-admin/options-general.php?page=sboptions
    • > Notice in wp-content/plugins/3d-slider-slicebox/sliderbox.php+161
    Undefined index: link3
    • > GET request to /wp-admin/options-general.php?page=sboptions
    • > Notice in wp-content/plugins/3d-slider-slicebox/sliderbox.php+163
    Undefined index: name3
    • > GET request to /wp-admin/options-general.php?page=sboptions
    • > Notice in wp-content/plugins/3d-slider-slicebox/sliderbox.php+165
    Undefined index: perma3
    • > GET request to /wp-admin/options-general.php?page=sboptions
    • > Notice in wp-content/plugins/3d-slider-slicebox/sliderbox.php+161
    Undefined index: link4
    • > GET request to /wp-admin/options-general.php?page=sboptions
    • > Notice in wp-content/plugins/3d-slider-slicebox/sliderbox.php+163
    Undefined index: name4
    • > GET request to /wp-admin/options-general.php?page=sboptions
    • > Notice in wp-content/plugins/3d-slider-slicebox/sliderbox.php+165
    Undefined index: perma4
    • > GET request to /wp-admin/options-general.php?page=sboptions
    • > Notice in wp-content/plugins/3d-slider-slicebox/sliderbox.php+161
    Undefined index: link5
    • > GET request to /wp-admin/options-general.php?page=sboptions
    • > Notice in wp-content/plugins/3d-slider-slicebox/sliderbox.php+163
    Undefined index: name5
    • > GET request to /wp-admin/options-general.php?page=sboptions
    • > Notice in wp-content/plugins/3d-slider-slicebox/sliderbox.php+165
    Undefined index: perma5

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/3d-slider-slicebox/sliderbox.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can look at the official readme.txt

3d-slider-slicebox/sliderbox.php 92% from 13 tests

This is the main PHP file of "3D Slider Slice Box" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("3d-slider-slicebox.php" instead of "sliderbox.php")

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
No dangerous file extensions were detected1,099 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2259117539
PHP15434377
CSS1281183

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/shadow.png30.08KB15.52KB▼ 48.41%
images/options.png1.82KB0.69KB▼ 61.99%
images/nav.png1.69KB0.45KB▼ 73.12%