78% 3d-slider-slicebox

Code Review | 3D Slider Slice Box

WordPress plugin 3D Slider Slice Box scored 78% 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: 6.3.1
  • 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 / 15,237 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.10ms] Passed 4 tests

An overview of server-side resources used by 3D Slider Slice Box
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.19 ▼1.82
Dashboard /wp-admin3.32 ▲0.0143.56 ▼4.02
Posts /wp-admin/edit.php3.37 ▲0.0144.44 ▼1.93
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.93 ▼7.98
Media Library /wp-admin/upload.php3.24 ▲0.0132.56 ▼2.47
3D Slider /wp-admin/options-general.php?page=sboptions3.1828.33

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, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for 3D Slider Slice Box
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲17313.68 ▼0.724.70 ▲2.9137.38 ▼1.41
Dashboard /wp-admin2,207 ▲225.81 ▲0.9297.18 ▼4.5437.31 ▼3.68
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0235.56 ▼4.3434.70 ▼2.83
Add New Post /wp-admin/post-new.php1,536 ▲1723.24 ▲0.09633.96 ▼58.9849.59 ▼6.21
Media Library /wp-admin/upload.php1,392 ▲74.29 ▲0.1191.49 ▼10.1343.83 ▼1.81
3D Slider /wp-admin/options-general.php?page=sboptions1,2672.0225.7929.59

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=sboptions
    • > User deprecated in wp-includes/functions.php+5463
    Function 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+5463
    Function 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 errors when accessed directly with GET requests:
    • > 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 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

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

The main PHP file in "3D Slider Slice Box" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,099 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2259117539
PHP15434377
CSS1281183

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
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/nav.png1.69KB0.45KB▼ 73.12%
images/shadow.png30.08KB15.52KB▼ 48.41%
images/options.png1.82KB0.69KB▼ 61.99%