84% wikiloops-track-player

Code Review | Wikiloops Track Player

WordPress plugin Wikiloops Track Player scored84%from 54 tests.

About plugin

  • Plugin page: wikiloops-track-p...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 4, 2018
  • Latest release: Jan 5, 2018
  • Number of updates: 10
  • Update frequency: every 0.2 days
  • Top authors: jmrukkers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /636 total downloads

Benchmarks

Plugin footprint 83% 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: ▼0.00MB] [CPU: ▼8.73ms] Passed 4 tests

This is a short check of server-side resources used by Wikiloops Track Player
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.44 ▲1.28
Dashboard /wp-admin3.31 ▼0.0351.10 ▼12.35
Posts /wp-admin/edit.php3.36 ▲0.0149.97 ▼3.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.75 ▼18.34
Media Library /wp-admin/upload.php3.23 ▲0.0039.00 ▼0.84

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Wikiloops Track Player
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.33 ▼0.371.81 ▼0.3947.48 ▲8.35
Dashboard /wp-admin2,192 ▲155.63 ▲0.0296.38 ▼1.3342.92 ▼4.47
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0234.52 ▼7.2436.99 ▼1.62
Add New Post /wp-admin/post-new.php1,526 ▼223.07 ▲0.06679.98 ▲8.3355.77 ▲3.42
Media Library /wp-admin/upload.php1,397 ▼34.18 ▼0.0698.72 ▼11.8246.04 ▼3.64

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wikiloops-track-player/Wikiloops-Track-Player.php:27

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: oembed, shortcode, music player, wikiloops

wikiloops-track-player/Wikiloops-Track-Player.php 92% from 13 tests

The main PHP file in "Wikiloops Track Player" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("wikiloops-track-player.php" instead of "Wikiloops-Track-Player.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141016

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected