10% tf-song-list

Code Review | tf Song List

WordPress plugin tf Song List scored 10% from 54 tests.

About plugin

  • Plugin page: tf-song-list
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Apr 5, 2013
  • Latest release: Jul 17, 2014
  • Number of updates: 20
  • Update frequency: every 23.4 days
  • Top authors: ipm-frommen (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active / 3,779 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method TFSongList::activation() should not be called statically

Server metrics [RAM: ▼1.05MB] [CPU: ▼42.62ms] Passed 4 tests

Server-side resources used by tf Song List
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▼0.5515.00 ▼26.22
Dashboard /wp-admin2.96 ▼0.3419.67 ▼30.75
Posts /wp-admin/edit.php2.96 ▼0.3916.58 ▼32.21
Add New Post /wp-admin/post-new.php2.96 ▼2.9317.33 ▼81.28
Media Library /wp-admin/upload.php2.96 ▼0.2719.28 ▼14.66
Settings /wp-admin/admin.php?page=tfsl-settings2.9618.94
Import/Export /wp-admin/admin.php?page=tfsl-import-export2.9618.04
Songs /wp-admin/admin.php?page=tfsl-songs2.9618.88

Server storage [IO: ▲0.11MB] [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: 16 new files
Database: 1 new table, 7 new options
New tables
wp_tfsl_songs
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
tfsl_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for tf Song List
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲12314.47 ▼0.311.90 ▲0.1943.78 ▼5.59
Dashboard /wp-admin2,237 ▲464.86 ▼1.1997.09 ▼5.2538.95 ▼1.09
Posts /wp-admin/edit.php2,120 ▲312.02 ▲0.0038.51 ▼0.4536.38 ▲0.72
Add New Post /wp-admin/post-new.php1,539 ▲217.58 ▼5.64663.79 ▼13.7861.16 ▼5.83
Media Library /wp-admin/upload.php1,419 ▲284.18 ▼0.0294.95 ▼3.1343.06 ▲1.99
Settings /wp-admin/admin.php?page=tfsl-settings1,0702.0623.2527.94
Import/Export /wp-admin/admin.php?page=tfsl-import-export9702.0622.1633.49
Songs /wp-admin/admin.php?page=tfsl-songs9822.0622.9126.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method TFSongList::load_textdomain() should not be called statically
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=tfsl-songs
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method TFSongList::load_textdomain() should not be called statically
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=tfsl-songs
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method TFSongList::admin_menu() should not be called statically
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=tfsl-songs
    • > Deprecated in wp-content/plugins/tf-song-list/tf-song-list.php+291
    Non-static method TFSongList::add_cap() should not be called statically
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=tfsl-songs
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method TFSongList::register_settings() should not be called statically
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=tfsl-songs
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method TFSongList::admin_head() should not be called statically
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=tfsl-songs
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method TFSongList::admin_help() should not be called statically
    • > GET request to /wp-admin/admin.php?page=tfsl-settings
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method TFSLSettings::print_page() should not be called statically
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=tfsl-songs
    • > Deprecated in wp-content/plugins/tf-song-list/tf-song-list.php+269
    Non-static method TFSongList::sanitize_options() should not be called statically
    • > GET request to /wp-admin/admin.php?page=tfsl-import-export
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method TFSLImportExport::print_page() should not be called statically
    • > GET request to /wp-admin/admin.php?page=tfsl-songs
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method TFSLSongs::print_page() should not be called statically

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: music, song list, performers, songs, bands...

tf-song-list/tf-song-list.php Passed 13 tests

Analyzing the main PHP file in "tf Song List" version 1.1.0
102 characters long description:
An easy-to-use song listing plugin for bands and solo musicians. Insert with shortcode [tf_song_list].

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
No dangerous file extensions were detected1,962 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP81684031,440
PO File2167354419
CSS22540103

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.52
Average class complexity40.75
▷ Minimum class complexity4.00
▷ Maximum class complexity186.00
Average method complexity6.78
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes114.29%
Methods55
▷ Static methods1120.00%
▷ Public methods4887.27%
▷ Protected methods11.82%
▷ Private methods610.91%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin