78% playlist-217

Code Review | Playlist 217

WordPress plugin Playlist 217 scored 78% from 54 tests.

About plugin

  • Plugin page: playlist-217
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.1.2
  • WordPress version: 5.9.2
  • First release: May 16, 2011
  • Latest release: May 25, 2011
  • Number of updates: 7
  • Update frequency: every 39.2 days
  • Top authors: kionae (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 4,780 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼299.18ms] Passed 4 tests

Server-side resources used by Playlist 217
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2059.11 ▲7.49
Dashboard /wp-admin3.55 ▲0.1533.96 ▼0.32
Posts /wp-admin/edit.php3.78 ▲0.1436.24 ▲0.04
Add New Post /wp-admin/post-new.php7.02 ▲0.0589.74 ▼1,197.52
Media Library /wp-admin/upload.php3.43 ▲0.1427.14 ▲1.07
Add Album /wp-admin/post-new.php?post_type=artistalbum3.7347.79
Playlist217 Settings /wp-admin/edit.php?post_type=artistalbum&page=playlist_settings/playlist.php3.4025.40
Artists /wp-admin/edit-tags.php?taxonomy=artists&post_type=artistalbum3.4323.78
Albums /wp-admin/edit.php?post_type=artistalbum3.5326.10
Auto-Import Albums /wp-admin/edit.php?post_type=artistalbum&page=playlist_options/playlist.php3.4022.06

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: 1 new table, no new options
New tables
wp_playlist

Browser metrics Passed 4 tests

Checking browser requirements for Playlist 217
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,848 ▲10415.90 ▼0.136.95 ▲0.292.53 ▲0.32
Dashboard /wp-admin2,944 ▲906.16 ▲0.07116.05 ▼17.64154.40 ▼9.15
Posts /wp-admin/edit.php2,738 ▲473.24 ▲0.0163.97 ▼0.39141.93 ▼3.19
Add New Post /wp-admin/post-new.php1,792 ▲12617.68 ▼3.41413.26 ▼41.35156.51 ▼6.77
Media Library /wp-admin/upload.php1,750 ▲525.46 ▼0.04144.74 ▼3.67193.61 ▲0.95
Add Album /wp-admin/post-new.php?post_type=artistalbum2,4955.6493.42145.92
Playlist217 Settings /wp-admin/edit.php?post_type=artistalbum&page=playlist_settings/playlist.php1,1082.3754.76127.34
Artists /wp-admin/edit-tags.php?taxonomy=artists&post_type=artistalbum1,6712.7656.14114.18
Albums /wp-admin/edit.php?post_type=artistalbum1,4163.1761.11114.51
Auto-Import Albums /wp-admin/edit.php?post_type=artistalbum&page=playlist_options/playlist.php1,0692.3651.99126.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_playlist

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/playlist-217/output.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/playlist-217/playlist.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: music, now playing, radio, playlist

playlist-217/playlist.php 85% from 13 tests

The primary PHP file in "Playlist 217" version 2.0.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("playlist-217.php" instead of "playlist.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
No dangerous file extensions were detected685 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4151120685

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.28
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 files were detected