84% chordchartwp

Code Review | ChordChartWP

WordPress plugin ChordChartWP scored84%from 54 tests.

About plugin

  • Plugin page: chordchartwp
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Aug 28, 2019
  • Latest release: Aug 28, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: faniry (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /776 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.29ms] Passed 4 tests

This is a short check of server-side resources used by ChordChartWP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.95 ▲0.97
Dashboard /wp-admin3.33 ▲0.0343.82 ▼2.38
Posts /wp-admin/edit.php3.38 ▲0.0249.91 ▲4.69
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.32 ▼1.17
Media Library /wp-admin/upload.php3.25 ▲0.0231.28 ▼2.59

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

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

Browser metrics Passed 4 tests

ChordChartWP: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.31 ▼1.341.91 ▲0.2939.77 ▼2.47
Dashboard /wp-admin2,209 ▲245.89 ▲0.08106.78 ▼11.3751.63 ▲5.62
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0739.00 ▲3.1035.18 ▲3.72
Add New Post /wp-admin/post-new.php1,542 ▲2318.13 ▼4.75599.25 ▼36.7949.91 ▼11.59
Media Library /wp-admin/upload.php1,388 ▼34.16 ▼0.0795.90 ▼3.3741.24 ▼2.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chordchartwp/ChordChartWP.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Examples of rendered svg guitar frets using ChordChartWP) image missing
You can look at the official readme.txt

chordchartwp/ChordChartWP.php 92% from 13 tests

"ChordChartWP" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("chordchartwp.php" instead of "ChordChartWP.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected579 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2013418
PHP12230161

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions3
▷ Named functions3100.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
There were not PNG files found in your plugin