62% tune-library

Code Review | Tune Library

WordPress plugin Tune Library scored 62% from 54 tests.

About plugin

  • Plugin page: tune-library
  • Plugin version: 1.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.8
  • WordPress version: 5.8.1
  • First release: Feb 10, 2009
  • Latest release: Jul 24, 2021
  • Number of updates: 71
  • Update frequency: every 64.1 days
  • Top authors: jackdewey (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 10,663 total downloads

Benchmarks

Plugin footprint 65% 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.14MB] [CPU: ▼182.14ms] Passed 4 tests

A check of server-side resources used by Tune Library
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.98 ▲0.1435.01 ▲1.86
Dashboard /wp-admin3.20 ▲0.1550.35 ▲10.51
Posts /wp-admin/edit.php3.29 ▲0.1845.90 ▼17.86
Add New Post /wp-admin/post-new.php5.57 ▲0.1497.44 ▼704.69
Media Library /wp-admin/upload.php3.15 ▲0.1433.04 ▼7.88

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 19 new files
Database: 1 new table, 1 new option
New tables
wp_tracks
New WordPress options
TuneLibraryPP

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tune Library
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,718 ▲14615.94 ▲0.3710.64 ▲0.1653.56 ▲7.27
Dashboard /wp-admin2,976 ▲465.99 ▲0.03147.57 ▼29.95114.16 ▲4.57
Posts /wp-admin/edit.php2,748 ▲92.71 ▼0.0165.53 ▼13.6485.88 ▼45.77
Add New Post /wp-admin/post-new.php1,690 ▲19018.49 ▲0.04387.58 ▲11.91110.55 ▼1.50
Media Library /wp-admin/upload.php1,816 ▲95.03 ▲0.02154.76 ▲1.59110.93 ▼8.65
Tune Library /wp-admin/tune-library.php260.900.1010.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_tracks
  • This plugin does not fully uninstall, leaving 1 option in the database
    • TuneLibraryPP

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/tune-library/js/folder-tree-static.js.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tune-library/tune-library.php:976

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/tune-library.php
    • > Network (severe)
    wp-admin/tune-library.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (The Tune Library Configuration Screen), #2 (A sample output of the Tune Library plugin when used inside of a Wordpress page)
The official readme.txt might help

tune-library/tune-library.php Passed 13 tests

This is the main PHP file of "Tune Library" version 1.6.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
139 characters long description:
A plugin that can be used to import an iTunes Library into a MySQl database and display the contents of the collection on a Wordpress Page.

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
No dangerous file extensions were detected1,703 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP32931021,238
JavaScript35245258
CSS3396199
SQL1008

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity5.38
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin