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: 6.3.1
  • 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 / 4,083 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.05MB] [CPU: ▲0.38ms] Passed 4 tests

Server-side resources used by 3D DVD Cover (WebGL and THREE JS)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.62 ▼10.10
Dashboard /wp-admin3.36 ▲0.0656.22 ▲7.57
Posts /wp-admin/edit.php3.42 ▲0.0654.54 ▲6.42
Add New Post /wp-admin/post-new.php5.50 ▼0.3986.84 ▲2.41
Media Library /wp-admin/upload.php3.29 ▲0.0639.51 ▲2.78

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 15 new options
New WordPress options
dvdcovercenter_size_w
dvdcoverfront_size_h
dvdcoverback_crop
widget_recent-comments
widget_theysaidso_widget
dvdcoverfront_crop
theysaidso_admin_options
dvdcovercenter_size_h
db_upgraded
dvdcoverback_size_h
...

Browser metrics Passed 4 tests

3D DVD Cover (WebGL and THREE JS): an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.23 ▼1.155.00 ▲2.8040.78 ▲1.13
Dashboard /wp-admin2,206 ▲154.86 ▼0.04111.27 ▲6.8742.00 ▼3.12
Posts /wp-admin/edit.php2,096 ▲42.03 ▲0.0240.82 ▲0.6135.03 ▼2.46
Add New Post /wp-admin/post-new.php1,662 ▲12023.50 ▲5.46878.46 ▲268.8947.06 ▼7.63
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.0798.34 ▼1.4441.30 ▼2.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 15 options
    • dvdcoverback_crop
    • dvdcovercenter_crop
    • dvdcoverfront_size_h
    • dvdcoverfront_crop
    • dvdcovercenter_size_w
    • widget_recent-posts
    • dvdcoverback_size_h
    • dvdcoverback_size_w
    • theysaidso_admin_options
    • widget_recent-comments
    • ...

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
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 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 errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined index: image_1 in wp-content/plugins/3d-dvd-cover/changecolordvd.php on line 19
    • > PHP Notice
      Undefined index: logo in wp-content/plugins/3d-dvd-cover/changecolordvd.php on line 3
    • > PHP Notice
      Undefined index: image_3 in wp-content/plugins/3d-dvd-cover/changecolordvd.php on line 41
    • > 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: color in wp-content/plugins/3d-dvd-cover/changecolordvd.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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 need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Change color dvd case), #2 (Select and upload image), #3 (Save image post.), #4 (Preview image post)
You can take inspiration from this readme.txt

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

"3D DVD Cover (WebGL and THREE JS)" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same 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
No dangerous file extensions were detected1,540 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4248861,226
PHP23530284
CSS10030

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
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

PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.43MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/dvdcenter.png0.51KB0.49KB▼ 4.37%
images/prin_icon2.png0.56KB0.79KB0.00%
screenshot-3.png69.73KB33.17KB▼ 52.43%
screenshot-1.png72.63KB20.59KB▼ 71.64%
images/dvdfront.png0.98KB1.02KB0.00%