84% 3d-wiggle-player

Code Review | 3D Wiggle Player

WordPress plugin 3D Wiggle Player scored 84% from 54 tests.

About plugin

  • Plugin page: 3d-wiggle-player
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.9.8
  • WordPress version: 5.9.2
  • First release: Dec 30, 2015
  • Latest release: Sep 12, 2018
  • Number of updates: 17
  • Update frequency: every 58.5 days
  • Top authors: arpad.baksa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,241 total downloads


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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼2.41MB] [CPU: ▼350.85ms] Passed 4 tests

A check of server-side resources used by 3D Wiggle Player
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.97 ▼1.555.00 ▼45.37
Dashboard /wp-admin1.99 ▼1.434.63 ▼29.46
Posts /wp-admin/edit.php1.99 ▼1.666.32 ▼29.72
Add New Post /wp-admin/post-new.php1.99 ▼4.994.15 ▼1,298.86
Media Library /wp-admin/upload.php1.99 ▼1.324.43 ▼23.29

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for 3D Wiggle Player
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,798 ▲5616.25 ▲0.625.82 ▼0.253.11 ▲0.96
Dashboard /wp-admin2,899 ▲386.14 ▼0.06117.30 ▼17.20153.76 ▼5.85
Posts /wp-admin/edit.php2,698 ▲73.24 ▲0.0166.15 ▲1.16150.20 ▲4.02
Add New Post /wp-admin/post-new.php1,714 ▲5321.09 ▲3.93438.51 ▲21.26167.19 ▲12.89
Media Library /wp-admin/upload.php1,702 ▲45.50 ▼0.03139.48 ▼16.24190.14 ▼11.41

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
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5768
    wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the psswiggleplayer handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/3d-wiggle-player/3d-wiggle-player.php

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: stereo-gram, 3d, image, wiggle, stereoscopy...

3d-wiggle-player/3d-wiggle-player.php 85% from 13 tests

The entry point to "3D Wiggle Player" version 1.1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

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 detected884 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity18.25
▷ Minimum class complexity9.00
▷ Maximum class complexity28.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods731.82%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants14.35%
▷ Class constants2295.65%
▷ Public constants22100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin