74% 3d-wiggle-player

Code Review | 3D Wiggle Player

WordPress plugin 3D Wiggle Player scored74%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: 6.3.1
  • 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,520 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.84MB] [CPU: ▼50.60ms] Passed 4 tests

A check of server-side resources used by 3D Wiggle Player
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.3210.64 ▼30.85
Dashboard /wp-admin2.17 ▼1.147.71 ▼43.19
Posts /wp-admin/edit.php2.17 ▼1.196.74 ▼40.03
Add New Post /wp-admin/post-new.php2.17 ▼3.727.12 ▼88.32
Media Library /wp-admin/upload.php2.17 ▼1.067.95 ▼28.85

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for 3D Wiggle Player
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.27 ▼0.122.02 ▲0.3143.10 ▼0.05
Dashboard /wp-admin2,197 ▲175.60 ▼0.0994.50 ▲3.2040.24 ▼0.94
Posts /wp-admin/edit.php2,102 ▲22.04 ▲0.0540.36 ▲4.0936.71 ▼0.64
Add New Post /wp-admin/post-new.php1,547 ▲223.09 ▼0.10674.18 ▲46.3056.15 ▼6.98
Media Library /wp-admin/upload.php1,405 ▲54.15 ▼0.07101.55 ▲3.8646.69 ▲3.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function 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.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following items
  • 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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: breezegram, stereoscopy, stereogram, image, stereo-gram...

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

"3D Wiggle Player" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages/")
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin884 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP611150471
JavaScript2508342
CSS112071

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods22
▷ Static methods731.82%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants23
▷ Global constants14.35%
▷ Class constants2295.65%
▷ Public constants22100.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
There are no PNG files in this plugin