84% simple-shortcode-for-jw-player-7

Code Review | Simple shortcode for JW Player 7

WordPress plugin Simple shortcode for JW Player 7 scored84%from 54 tests.

About plugin

  • Plugin page: simple-shortcode-...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Mar 11, 2016
  • Latest release: Jun 7, 2016
  • Number of updates: 6
  • Update frequency: every 15.0 days
  • Top authors: dirlikdesigns (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,194 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.74ms] Passed 4 tests

An overview of server-side resources used by Simple shortcode for JW Player 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.91 ▼2.35
Dashboard /wp-admin3.33 ▲0.0343.33 ▼5.81
Posts /wp-admin/edit.php3.38 ▲0.0345.55 ▼3.38
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.79 ▼7.41
Media Library /wp-admin/upload.php3.25 ▲0.0337.94 ▲4.02

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Simple shortcode for JW Player 7: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.60 ▼0.701.61 ▼0.1741.52 ▲2.41
Dashboard /wp-admin2,219 ▲315.80 ▲0.88106.14 ▼7.4938.14 ▼4.66
Posts /wp-admin/edit.php2,102 ▲132.04 ▲0.0339.17 ▲0.2140.38 ▲5.46
Add New Post /wp-admin/post-new.php1,551 ▲1823.03 ▼0.34625.71 ▲20.1054.39 ▲6.05
Media Library /wp-admin/upload.php1,401 ▲134.21 ▲0.0294.80 ▼1.3441.13 ▼1.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-shortcode-for-jw-player-7/simple-shortcode-for-jw-player-7.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: flash, html5, player, jw player 7, jw...

simple-shortcode-for-jw-player-7/simple-shortcode-for-jw-player-7.php 92% from 13 tests

The principal PHP file in "Simple shortcode for JW Player 7" v. 1.2.1 is loaded by WordPress automatically on each request
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

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
Success! There were no dangerous files found in this plugin213 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23914123
JavaScript111052
PO File16411938

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin