77% cube-3d-slider

Code Review | Cube 3D Slider

WordPress plugin Cube 3D Slider scored77%from 54 tests.

About plugin

  • Plugin page: cube-3d-slider
  • Plugin version: 1.11
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.4
  • WordPress version: 6.3.1
  • First release: Mar 3, 2016
  • Latest release: Nov 6, 2023
  • Number of updates: 32
  • Update frequency: every 87.6 days
  • Top authors: manu225 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /8,145 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.27ms] Passed 4 tests

A check of server-side resources used by Cube 3D Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.26 ▼0.96
Dashboard /wp-admin3.33 ▼0.0147.89 ▼9.13
Posts /wp-admin/edit.php3.45 ▲0.1052.98 ▲4.86
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.75 ▼14.05
Media Library /wp-admin/upload.php3.24 ▲0.0135.99 ▲3.06
Help /wp-admin/admin.php?page=cube_3d_sliders_help3.2538.46
Cube 3D Sliders /wp-admin/admin.php?page=cube_3d_sliders3.3138.61

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: 1 new table, 6 new options
New tables
wp_cube_3d_sliders
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cube 3D Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,980 ▲23314.58 ▲0.451.78 ▲0.1241.67 ▲2.01
Dashboard /wp-admin2,363 ▲1836.18 ▲0.55117.87 ▲26.8780.35 ▲42.17
Posts /wp-admin/edit.php2,288 ▲1913.34 ▲1.3552.95 ▲15.7068.15 ▲33.72
Add New Post /wp-admin/post-new.php1,551 ▲2523.15 ▼0.07663.16 ▲31.35167.13 ▲114.39
Media Library /wp-admin/upload.php1,425 ▲254.08 ▼0.0991.19 ▼8.9372.16 ▲29.60
Help /wp-admin/admin.php?page=cube_3d_sliders_help9953.0640.3860.21
Cube 3D Sliders /wp-admin/admin.php?page=cube_3d_sliders3,05312.95246.6879.53

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/cube-3d-slider/views/help.php
    • > /wp-content/plugins/cube-3d-slider/views/cube-3d-slider.tpl.php
  • 48× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Trying to get property 'width' of non-object in wp-content/plugins/cube-3d-slider/views/cube-3d-slider.tpl.php on line 24
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/cube-3d-slider/views/cube-3d-slider.tpl.php on line 115
    • > PHP Notice
      Trying to get property 'left_face_text' of non-object in wp-content/plugins/cube-3d-slider/views/cube-3d-slider.tpl.php on line 139
    • > PHP Notice
      Trying to get property 'top_face_image' of non-object in wp-content/plugins/cube-3d-slider/views/cube-3d-slider.tpl.php on line 62
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cube-3d-slider/views/cube-3d-slider.tpl.php on line 115
    • > PHP Notice
      Undefined variable: c3s in wp-content/plugins/cube-3d-slider/views/cube-3d-slider.tpl.php on line 13
    • > PHP Notice
      Trying to get property 'bottom_face_image' of non-object in wp-content/plugins/cube-3d-slider/views/cube-3d-slider.tpl.php on line 69
    • > PHP Notice
      Undefined variable: c3s in wp-content/plugins/cube-3d-slider/views/cube-3d-slider.tpl.php on line 34
    • > PHP Notice
      Undefined variable: c3s in wp-content/plugins/cube-3d-slider/views/cube-3d-slider.tpl.php on line 62
    • > PHP Notice
      Trying to get property 'width' of non-object in wp-content/plugins/cube-3d-slider/views/cube-3d-slider.tpl.php on line 14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 87% 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
Please fix the following attributes:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === cube-3d-slider === )
The official readme.txt might help

cube-3d-slider/cube-3d-slider.php 85% from 13 tests

Analyzing the main PHP file in "Cube 3D Slider" version 1.11
Please make the necessary changes and fix the following:
  • Domain Path: The domain path should use only dashes and lowercase characters ("")
  • Domain Path: Please prefix the domain path with a forward slash character ("/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected560 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP49523412
CSS2198105
JavaScript122143

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/add.png0.69KB0.41KB▼ 40.51%
images/next.png1.53KB1.60KB0.00%
images/fb.png1.59KB1.00KB▼ 37.42%
images/remove.png1.27KB1.20KB▼ 5.76%
images/icon.png0.70KB0.75KB0.00%