84% fumen

Code Review | Chord chart into your blog

WordPress plugin Chord chart into your blog scored84%from 54 tests.

About plugin

  • Plugin page: fumen
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 20, 2020
  • Latest release: Jun 15, 2023
  • Number of updates: 7
  • Update frequency: every 138.3 days
  • Top authors: hbjpn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /478 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Chord chart into your blog
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.32 ▲2.55
Dashboard /wp-admin3.31 ▲0.0049.58 ▲2.62
Posts /wp-admin/edit.php3.36 ▲0.0046.36 ▼0.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.43 ▼14.62
Media Library /wp-admin/upload.php3.23 ▲0.0033.29 ▼3.21

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Chord chart into your blog
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8514.15 ▼0.2370.60 ▲68.9842.60 ▲1.66
Dashboard /wp-admin2,203 ▲155.80 ▲0.91103.30 ▼5.8842.01 ▼0.40
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0240.14 ▼1.8638.36 ▲3.39
Add New Post /wp-admin/post-new.php1,542 ▲918.36 ▼5.06624.36 ▼34.8453.10 ▼10.84
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0098.99 ▲2.5542.29 ▼3.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fumen/wp-fumen.php:86

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: fumen, chord, score, sheetmusic, chord chart

fumen/wp-fumen.php 92% from 13 tests

"Chord chart into your blog" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("fumen.php" instead of "wp-fumen.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin700 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2561,764635
PHP1131165

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin