84% wp-parsi-jwplayer

Code Review | WP-Parsi JW Player

WordPress plugin WP-Parsi JW Player scored84%from 54 tests.

About plugin

  • Plugin page: wp-parsi-jwplayer
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Jan 15, 2013
  • Latest release: Feb 19, 2019
  • Number of updates: 15
  • Update frequency: every 149.7 days
  • Top authors: man4toman (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /13,355 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.33ms] Passed 4 tests

A check of server-side resources used by WP-Parsi JW Player
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.64 ▼5.76
Dashboard /wp-admin3.31 ▼0.0442.18 ▼19.54
Posts /wp-admin/edit.php3.36 ▲0.0043.57 ▼2.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.43 ▼13.27
Media Library /wp-admin/upload.php3.23 ▲0.0032.58 ▼0.53

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP-Parsi JW Player
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▼0.001.93 ▲0.3840.85 ▲0.23
Dashboard /wp-admin2,195 ▲155.65 ▼0.0288.64 ▼5.4439.93 ▼3.39
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0138.72 ▲0.8336.82 ▲1.69
Add New Post /wp-admin/post-new.php1,526 ▼223.20 ▲0.12657.54 ▼17.4355.87 ▼1.50
Media Library /wp-admin/upload.php1,400 ▲34.22 ▲0.0294.81 ▼1.8341.51 ▼5.73

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-parsi-jwplayer/jwplayer.php:45

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Player in action)
The official readme.txt is a good inspiration

wp-parsi-jwplayer/jwplayer.php 92% from 13 tests

The entry point to "WP-Parsi JW Player" version 1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-parsi-jwplayer.php" instead of "jwplayer.php")

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 plugin29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161229

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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
1 compressed PNG file occupies 0.06MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png60.44KB58.71KB▼ 2.86%