84% wp-jet-player

Code Review | WP Jet Player

WordPress plugin WP Jet Player scored84%from 54 tests.

About plugin

  • Plugin page: wp-jet-player
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: WP 4.8-5.3
  • WordPress version: 6.3.1
  • First release: Dec 2, 2019
  • Latest release: Dec 2, 2019
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: codersjet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /888 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼12.27ms] Passed 4 tests

Analyzing server-side resources used by WP Jet Player
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1037.73 ▲1.68
Dashboard /wp-admin3.46 ▲0.1141.91 ▼17.79
Posts /wp-admin/edit.php3.51 ▲0.1543.34 ▼4.34
Add New Post /wp-admin/post-new.php5.97 ▲0.0981.58 ▼22.42
Media Library /wp-admin/upload.php3.32 ▲0.0931.47 ▼4.54
Videos /wp-admin/edit.php?post_type=wp-jet-video3.4537.82
Players /wp-admin/edit.php?post_type=wp-jet-player3.4940.76
Add New Player /wp-admin/post-new.php?post_type=wp-jet-player3.5444.92
Skins /wp-admin/edit.php?post_type=wp-jet-skin3.4941.58

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WP Jet Player
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,981 ▲23513.49 ▼0.9111.61 ▲10.0543.83 ▲4.36
Dashboard /wp-admin2,238 ▲635.63 ▲0.0187.40 ▼9.6239.75 ▼7.90
Posts /wp-admin/edit.php2,143 ▲431.99 ▼0.0033.40 ▼6.0936.41 ▲4.31
Add New Post /wp-admin/post-new.php1,563 ▲3723.07 ▲0.04661.08 ▲14.1558.56 ▲12.62
Media Library /wp-admin/upload.php1,507 ▲1074.04 ▼0.2296.85 ▼2.1542.83 ▼2.27
Videos /wp-admin/edit.php?post_type=wp-jet-video1,2973.2546.4128.03
Players /wp-admin/edit.php?post_type=wp-jet-player1,8193.3950.1128.28
Add New Player /wp-admin/post-new.php?post_type=wp-jet-player2,3683.5360.5989.46
Skins /wp-admin/edit.php?post_type=wp-jet-skin1,8163.3746.6029.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-jet-player/wp-jet-player.php:107

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: audio, media, player, video

wp-jet-player/wp-jet-player.php 92% from 13 tests

The main PHP file in "WP Jet Player" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "WP 4.8")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin2,068 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP173921451,774
JavaScript3318188
CSS3230106

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity14.78
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes444.44%
Methods55
▷ Static methods1120.00%
▷ Public methods4887.27%
▷ Protected methods47.27%
▷ Private methods35.45%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/default_logo.png2.33KB0.73KB▼ 68.70%