10% tunesly

Code Review | Tunesly

WordPress plugin Tunesly scored 10% from 54 tests.

About plugin

  • Plugin page: tunesly
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-2.1
  • WordPress version: 6.3.1
  • First release: Feb 6, 2012
  • Latest release: Mar 8, 2012
  • Number of updates: 12
  • Update frequency: every 3.0 days
  • Top authors: bobthordarson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,904 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
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/tunesly/appsdown.php+31
    Methods with the same name as their class will not be constructors in a future version of PHP; AppsDown has a deprecated constructor

Server metrics [RAM: ▼0.67MB] [CPU: ▼11.05ms] Passed 4 tests

A check of server-side resources used by Tunesly
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.79 ▼1.47
Dashboard /wp-admin3.33 ▲0.0356.90 ▲7.09
Posts /wp-admin/edit.php3.38 ▲0.0348.67 ▲4.46
Add New Post /wp-admin/post-new.php3.12 ▼2.7735.90 ▼49.08
Media Library /wp-admin/upload.php3.26 ▲0.0335.28 ▲1.88
Tunesly /wp-admin/options-general.php?page=appsdown3.4036.24

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Tunesly
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲22314.48 ▲0.107.54 ▲5.7441.31 ▲2.47
Dashboard /wp-admin2,212 ▲265.33 ▲0.37104.99 ▼6.8138.16 ▲1.09
Posts /wp-admin/edit.php2,097 ▲82.37 ▲0.3341.28 ▼1.7832.42 ▼4.87
Add New Post /wp-admin/post-new.php6,477 ▲4,95823.35 ▲0.22887.08 ▲207.8252.71 ▼2.49
Media Library /wp-admin/upload.php1,394 ▲64.54 ▲0.2997.90 ▼16.4442.57 ▼4.67
Tunesly /wp-admin/options-general.php?page=appsdown1,2992.0530.4127.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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 fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/tunesly/version.php
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined index: action in wp-content/plugins/tunesly/tunesly_search.php on line 10
    • > PHP Notice
      Undefined index: url in wp-content/plugins/tunesly/request.php on line 15
    • > PHP Notice
      Undefined index: field in wp-content/plugins/tunesly/tooltips.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tunesly/widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AppsDown' not found in wp-content/plugins/tunesly/settings.php:2
    • > PHP Notice
      Undefined index: action in wp-content/plugins/tunesly/tunesly.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/tunesly/appsdown.php:53

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Insert iTunes affiliate links in grid format into your blog posts.), #2 (Tunesly iTunes affiliate sidebar widget. Create top ranking lists that automatically update daily in any iTunes content category.), #3 (Tunesly post options allow you to configure how you would like the iTunes links to appear inside your blog post.), #4 (Tunesly Settings allow you to configure the default post and widget configuration. Enter your Linkshare affiliate Web Services Token and add IPInfoDB API Key.)
The official readme.txt might help

tunesly/appsdown.php 92% from 13 tests

The main PHP file in "Tunesly" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("tunesly.php" instead of "appsdown.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 detected2,664 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP103034471,234
JavaScript418652984
CSS16911446

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity43.25
▷ Minimum class complexity15.00
▷ Maximum class complexity110.00
Average method complexity5.02
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods42
▷ Static methods12.38%
▷ Public methods4197.62%
▷ Protected methods00.00%
▷ Private methods12.38%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
rightRep.png1.11KB0.35KB▼ 68.13%
bgSelectRight.png0.98KB0.27KB▼ 72.61%
repBg.png1.28KB0.41KB▼ 67.76%
app-store-icon.png5.88KB2.62KB▼ 55.45%
bgSelectScroll.png1.35KB0.67KB▼ 50.61%