84% wp-link-to-playlist-item

Code Review | WP Link To Playlist Item

WordPress plugin WP Link To Playlist Item scored84%from 54 tests.

About plugin

  • Plugin page: wp-link-to-playli...
  • Plugin version: 0.2.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7
  • WordPress version: 6.3.1
  • First release: Jun 14, 2016
  • Latest release: Dec 13, 2016
  • Number of updates: 5
  • Update frequency: every 36.2 days
  • Top authors: PerS (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /932 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.57ms] Passed 4 tests

A check of server-side resources used by WP Link To Playlist Item
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.85 ▼4.35
Dashboard /wp-admin3.31 ▲0.0147.79 ▲0.43
Posts /wp-admin/edit.php3.36 ▲0.0048.09 ▲3.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.04 ▼13.85
Media Library /wp-admin/upload.php3.24 ▲0.0035.91 ▲4.10

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Link To Playlist Item
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,984 ▲23814.08 ▼0.1216.10 ▲14.3138.30 ▼2.98
Dashboard /wp-admin2,209 ▲185.84 ▲1.0096.96 ▼14.1641.47 ▼2.71
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0539.63 ▼0.9934.14 ▼1.38
Add New Post /wp-admin/post-new.php1,514 ▼2817.81 ▼0.34674.62 ▲66.8554.84 ▼2.53
Media Library /wp-admin/upload.php1,385 ▼04.20 ▲0.0192.57 ▼7.8444.85 ▲3.57

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-link-to-playlist-item/wp-link-to-playlist-item.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: playlist, audio, video

wp-link-to-playlist-item/wp-link-to-playlist-item.php Passed 13 tests

This is the main PHP file of "WP Link To Playlist Item" version 0.2.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
110 characters long description:
The plugin makes it possible to link to a playlist item using the #p hash, eg: /link-to-page-with-playlist/#p2

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin64 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1102253
PHP131011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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 were not PNG files found in your plugin