84% guitar-tuner

Code Review | GTDB Guitar Tuners

WordPress plugin GTDB Guitar Tuners scored84%from 54 tests.

About plugin

  • Plugin page: guitar-tuner
  • Plugin version: 4.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.6.1
  • WordPress version: 6.3.1
  • First release: Feb 4, 2011
  • Latest release: Feb 26, 2021
  • Number of updates: 69
  • Update frequency: every 53.3 days
  • Top authors: warmwhisky (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /13,671 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲4.83MB] [CPU: ▲6.79ms] Passed 4 tests

An overview of server-side resources used by GTDB Guitar Tuners
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /8.80 ▲5.3352.82 ▲9.16
Dashboard /wp-admin8.82 ▲5.5159.15 ▲5.58
Posts /wp-admin/edit.php8.82 ▲5.4662.80 ▲13.76
Add New Post /wp-admin/post-new.php8.91 ▲3.02113.36 ▲0.15
Media Library /wp-admin/upload.php8.82 ▲5.5952.08 ▲12.25

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 70 new files
Database: 1 new table, 7 new options
New tables
wp_guitar_tuners
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
jal_db_version

Browser metrics Passed 4 tests

Checking browser requirements for GTDB Guitar Tuners
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲15713.40 ▼0.958.10 ▲6.4541.50 ▼0.52
Dashboard /wp-admin2,195 ▲185.62 ▼0.0392.71 ▲0.9341.65 ▼1.04
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0840.69 ▲2.9235.14 ▼1.21
Add New Post /wp-admin/post-new.php1,526 ▼223.19 ▲0.05662.07 ▼28.7849.52 ▼1.57
Media Library /wp-admin/upload.php1,397 ▼34.23 ▲0.01121.42 ▲9.8141.94 ▼6.94

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • jal_db_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/guitar-tuner/index.php:1861

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === guitar-tuner === )
Please take inspiration from this readme.txt

guitar-tuner/index.php 92% from 13 tests

Analyzing the main PHP file in "GTDB Guitar Tuners" version 4.2.2
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("guitar-tuner.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin2,174 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP148632,065
CSS131109

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.01
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 functions6100.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
2 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/buttonoff.png93.54KB50.44KB▼ 46.07%
img/buttonon.png13.26KB8.63KB▼ 34.90%