84% keymaster-chord-notation-free

Code Review | Keymaster Chord Notation Free

WordPress plugin Keymaster Chord Notation Free scored 84% from 54 tests.

About plugin

  • Plugin page: keymaster-chord-n...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2
  • WordPress version: 6.3.1
  • First release: Apr 9, 2015
  • Latest release: Jul 21, 2015
  • Number of updates: 7
  • Update frequency: every 14.7 days
  • Top authors: intelligentDesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 2,469 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.17MB] [CPU: ▼3.76ms] Passed 4 tests

This is a short check of server-side resources used by Keymaster Chord Notation Free
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1641.68 ▲1.39
Dashboard /wp-admin3.48 ▲0.1746.50 ▼5.55
Posts /wp-admin/edit.php3.59 ▲0.2445.56 ▼5.85
Add New Post /wp-admin/post-new.php6.06 ▲0.1788.05 ▼5.02
Media Library /wp-admin/upload.php3.40 ▲0.1738.67 ▲3.55
Keymaster Chord Notation Free /wp-admin/options-general.php?page=keymaster_chord_notation_free3.3733.06

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_kcn_free_widget
keymaster_chord_notation_free-options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Keymaster Chord Notation Free
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲18413.66 ▼0.728.92 ▲7.1543.97 ▼2.52
Dashboard /wp-admin2,213 ▲224.89 ▲0.01104.57 ▼10.6939.58 ▼8.40
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0133.80 ▼5.1534.41 ▲0.02
Add New Post /wp-admin/post-new.php1,537 ▲323.24 ▲0.15671.79 ▲11.7056.41 ▼2.29
Media Library /wp-admin/upload.php1,386 ▲44.18 ▼0.0395.24 ▼5.4840.46 ▼2.03
Keymaster Chord Notation Free /wp-admin/options-general.php?page=keymaster_chord_notation_free1,5902.7754.0346.18

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_kcn_free_widget
    • db_upgraded
    • widget_theysaidso_widget
    • keymaster_chord_notation_free-options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/keymaster-chord-notation-free/inc_php/KCN_Free_Widget.class.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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 require images: #1 (The syntax is simple: [chord NOTE QUALITY]), #2 (Users can hide/reveal the chords or print with the click of a button.), #3 (Many customizations are available.), #4 (Unlimited color options are only available in the premium version.)
The official readme.txt is a good inspiration

keymaster-chord-notation-free/keymaster-chord-notation-free.php 92% from 13 tests

Analyzing the main PHP file in "Keymaster Chord Notation Free" version 1.0.2
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 316 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected671 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP256173529
JavaScript22329139
CSS2003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity36.50
▷ Minimum class complexity13.00
▷ Maximum class complexity60.00
Average method complexity3.73
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods26
▷ Static methods13.85%
▷ Public methods2388.46%
▷ Protected methods00.00%
▷ Private methods311.54%
Functions1
▷ Named functions1100.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
4 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png5.16KB3.28KB▼ 36.50%
screenshot-1.png5.14KB2.96KB▼ 42.37%
screenshot-3.png44.32KB18.65KB▼ 57.91%
screenshot-4.png27.30KB16.14KB▼ 40.89%