78% 3d-dvd-cover

Code Review | 3D DVD Cover (WebGL and THREE JS)

WordPress plugin 3D DVD Cover (WebGL and THREE JS) scored 78% from 54 tests.

About plugin

  • Plugin page: 3d-dvd-cover
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.1
  • WordPress version: 5.9.2
  • First release: Feb 22, 2014
  • Latest release: Feb 22, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: oscaruh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,825 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
Installer ran successfully

Server metrics [RAM: ▼0.21MB] [CPU: ▼298.13ms] Passed 4 tests

This is a short check of server-side resources used by 3D DVD Cover (WebGL and THREE JS)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0261.77 ▲4.22
Dashboard /wp-admin3.43 ▲0.0336.13 ▲1.11
Posts /wp-admin/edit.php3.66 ▲0.0241.40 ▼1.50
Add New Post /wp-admin/post-new.php6.06 ▼0.9179.50 ▼1,192.37
Media Library /wp-admin/upload.php3.31 ▲0.0224.24 ▲0.26

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 9 new options
New WordPress options
dvdcoverback_crop
dvdcoverback_size_h
dvdcovercenter_size_w
dvdcoverfront_size_w
dvdcoverfront_crop
dvdcoverback_size_w
dvdcoverfront_size_h
dvdcovercenter_size_h
dvdcovercenter_crop

Browser metrics Passed 4 tests

A check of browser resources used by 3D DVD Cover (WebGL and THREE JS)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲5115.86 ▼0.195.56 ▼0.302.52 ▲0.41
Dashboard /wp-admin2,895 ▲376.12 ▼0.06113.99 ▼21.31157.03 ▼6.38
Posts /wp-admin/edit.php2,698 ▲73.23 ▼0.0162.82 ▼0.56139.63 ▼7.91
Add New Post /wp-admin/post-new.php1,801 ▲4120.78 ▼1.79543.92 ▲97.63228.32 ▲65.95
Media Library /wp-admin/upload.php1,695 ▼05.51 ▲0.07145.56 ▼2.92186.62 ▼12.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • dvdcovercenter_size_w
    • dvdcoverback_size_w
    • dvdcoverback_size_h
    • dvdcovercenter_crop
    • dvdcoverfront_size_w
    • dvdcoverfront_size_h
    • dvdcoverfront_crop
    • dvdcoverback_crop
    • dvdcovercenter_size_h

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/3d-dvd-cover/changecolordvd.php
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/3d-dvd-cover/3d_threejs.php:11
    • > PHP Notice
      Undefined index: image_2 in wp-content/plugins/3d-dvd-cover/changecolordvd.php on line 30
    • > PHP Notice
      Undefined index: logo in wp-content/plugins/3d-dvd-cover/changecolordvd.php on line 3
    • > PHP Notice
      Undefined index: image_1 in wp-content/plugins/3d-dvd-cover/changecolordvd.php on line 19
    • > PHP Notice
      Undefined index: color in wp-content/plugins/3d-dvd-cover/changecolordvd.php on line 2
    • > PHP Notice
      Undefined index: image_3 in wp-content/plugins/3d-dvd-cover/changecolordvd.php on line 41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Change color dvd case), #2 (Select and upload image), #3 (Save image post.), #4 (Preview image post)
You can look at the official readme.txt

3d-dvd-cover/3d_threejs.php 92% from 13 tests

The main PHP script in "3D DVD Cover (WebGL and THREE JS)" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("3d-dvd-cover.php" instead of "3d_threejs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,540 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4248861,226
PHP23530284
CSS10030

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.43MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png173.58KB36.91KB▼ 78.74%
images/prin_icon2.png0.56KB0.79KB0.00%
screenshot-3.png69.73KB33.17KB▼ 52.43%
images/prin_icon.png0.89KB0.70KB▼ 20.79%
images/dvdcenter.png0.51KB0.49KB▼ 4.37%