77% wp-3d-slice-box-slider

Code Review | WP 3D SLICEBOX SLIDER

WordPress plugin WP 3D SLICEBOX SLIDER scored77%from 54 tests.

About plugin

  • Plugin page: wp-3d-slice-box-s...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Nov 10, 2014
  • Latest release: Jan 28, 2015
  • Number of updates: 38
  • Update frequency: every 2.1 days
  • Top authors: Umakant_dataman (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /5,014 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by WP 3D SLICEBOX SLIDER
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.23 ▼2.23
Dashboard /wp-admin3.33 ▼0.0251.84 ▼16.85
Posts /wp-admin/edit.php3.38 ▲0.0255.26 ▼0.37
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.40 ▼4.81
Media Library /wp-admin/upload.php3.25 ▲0.0233.21 ▼2.64
All 3D Images /wp-admin/edit.php?post_type=wp3d_images3.2937.35
Add New /wp-admin/post-new.php?post_type=wp3d_images3.3146.77

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WP 3D SLICEBOX SLIDER
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲9014.28 ▼0.014.99 ▲3.0646.97 ▲1.56
Dashboard /wp-admin2,223 ▲525.58 ▼0.0090.39 ▼6.9736.35 ▼8.49
Posts /wp-admin/edit.php2,131 ▲312.03 ▲0.0834.81 ▼4.8934.21 ▼2.74
Add New Post /wp-admin/post-new.php1,565 ▲3918.41 ▼4.56645.79 ▲25.7361.23 ▲1.17
Media Library /wp-admin/upload.php1,434 ▲374.22 ▲0.04100.03 ▼3.2245.86 ▲1.34
Slider Settings /wp-admin/setting.php260.420.1513.68
All 3D Images /wp-admin/edit.php?post_type=wp3d_images1,1041.9729.1131.17
Add New /wp-admin/post-new.php?post_type=wp3d_images1,6363.5560.0632.02

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-3d-slice-box-slider/wpsliceboxslider.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-3d-slice-box-slider/setting.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-3d-slice-box-slider/plugin_options.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/setting.php
    • > Network (severe)
    wp-admin/setting.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Admin list interface showing Slider images and titles.), #2 (Example output.(see documentation).)
  • Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

wp-3d-slice-box-slider/wpsliceboxslider.php 92% from 13 tests

The main file in "WP 3D SLICEBOX SLIDER" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-3d-slice-box-slider.php" instead of "wpsliceboxslider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected993 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript325999522
PHP37940295
CSS2281176

PHP code Passed 2 tests

Analyzing 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.16
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%
Functions12
▷ Named functions12100.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

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 1.03MB with 0.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/shadow.png30.08KB15.52KB▼ 48.41%
screenshot-2.png831.08KB296.15KB▼ 64.37%
images/options.png1.82KB0.69KB▼ 61.99%
images/nav.png1.69KB0.45KB▼ 73.12%
images/fancy_deboss.png3.61KB0.25KB▼ 93.02%