10% recent-tracks-lastfm

Code Review | Last.FM Recent Tracks - Wordpress Plugin

WordPress plugin Last.FM Recent Tracks - Wordpress Plugin scored 10% from 54 tests.

About plugin

  • Plugin page: recent-tracks-lastfm
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-4.1
  • WordPress version: 6.3.1
  • First release: Nov 11, 2014
  • Latest release: Dec 17, 2014
  • Number of updates: 6
  • Update frequency: every 6.2 days
  • Top authors: maksimdegtyarev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,090 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/recent-tracks-lastfm/lastfm-recenttracks.php+87
    syntax error, unexpected end of file

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

Server-side resources used by Last.FM Recent Tracks - Wordpress Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.29 ▲2.26
Dashboard /wp-admin3.31 ▲0.0056.75 ▲6.56
Posts /wp-admin/edit.php3.36 ▲0.0040.13 ▼10.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.33 ▼12.24
Media Library /wp-admin/upload.php3.23 ▲0.0043.95 ▲9.56

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Last.FM Recent Tracks - Wordpress Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.48 ▼0.152.20 ▲0.6443.98 ▲5.16
Dashboard /wp-admin2,206 ▲175.79 ▲0.8695.69 ▼22.9040.90 ▼0.94
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0234.00 ▼7.4934.20 ▼1.15
Add New Post /wp-admin/post-new.php1,533 ▲423.47 ▲5.23657.93 ▲34.6862.07 ▲9.04
Media Library /wp-admin/upload.php1,385 ▼04.24 ▼0.03100.00 ▲1.3244.24 ▲1.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/recent-tracks-lastfm/lastfm-recenttracks.php on line 87

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (The plugin on a post or page.), #2 (The options page for the plugin.)
You can look at the official readme.txt

recent-tracks-lastfm/lastfm-recenttracks.php 92% from 13 tests

The main PHP script in "Last.FM Recent Tracks - Wordpress Plugin" version 1.1 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("recent-tracks-lastfm.php" instead of "lastfm-recenttracks.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin102 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP19969
CSS10033

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.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
2 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png21.33KB4.39KB▼ 79.42%
screenshot-2.png46.58KB15.20KB▼ 67.37%