84% abc-notation

Code Review | ABC Notation

WordPress plugin ABC Notation scored84%from 54 tests.

About plugin

  • Plugin page: abc-notation
  • Plugin version: 6.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Mar 31, 2015
  • Latest release: Sep 5, 2022
  • Number of updates: 59
  • Update frequency: every 46.0 days
  • Top authors: paulrosen (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /4,560 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.89ms] Passed 4 tests

Analyzing server-side resources used by ABC Notation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.97 ▼3.36
Dashboard /wp-admin3.31 ▼0.0442.91 ▼14.95
Posts /wp-admin/edit.php3.36 ▲0.0045.61 ▼0.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.28 ▼5.19
Media Library /wp-admin/upload.php3.23 ▲0.0031.26 ▼4.07

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for ABC Notation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.28 ▼0.251.61 ▼0.0240.53 ▲3.23
Dashboard /wp-admin2,195 ▲205.63 ▼0.0490.68 ▼9.0738.71 ▼5.48
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0239.61 ▲4.7336.38 ▲0.35
Add New Post /wp-admin/post-new.php1,535 ▲718.13 ▼4.93600.10 ▼44.9358.54 ▲4.70
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.0598.09 ▼6.1243.95 ▼1.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/abc-notation/abc-notation.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (An example of a shortcode and the resultant music that is produced.) image missing
The official readme.txt might help

abc-notation/abc-notation.php 92% from 13 tests

"ABC Notation" version 6.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 256 characters long)

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
Success! There were no dangerous files found in this plugin451 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15142290
CSS1252160
JavaScript1021

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png21.84KB7.19KB▼ 67.09%