74% bstabs

Code Review | BSTabs

WordPress plugin BSTabs scored74%from 54 tests.

About plugin

  • Plugin page: bstabs
  • Plugin version: 1.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 6.3.1
  • First release: Mar 5, 2014
  • Latest release: Mar 16, 2018
  • Number of updates: 24
  • Update frequency: every 61.4 days
  • Top authors: mnezerka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,706 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼1.61MB] [CPU: ▼53.41ms] Passed 4 tests

This is a short check of server-side resources used by BSTabs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.39 ▼1.086.11 ▼38.77
Dashboard /wp-admin2.41 ▼0.946.97 ▼55.71
Posts /wp-admin/edit.php2.41 ▼0.957.32 ▼37.93
Add New Post /wp-admin/post-new.php2.41 ▼3.488.14 ▼81.23
Media Library /wp-admin/upload.php2.41 ▼0.827.26 ▼26.30

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for BSTabs
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲17814.35 ▼0.037.33 ▲5.3941.09 ▼3.09
Dashboard /wp-admin2,196 ▲175.82 ▼0.03101.49 ▼13.7139.55 ▼4.91
Posts /wp-admin/edit.php2,088 ▼12.01 ▼0.0138.76 ▲3.5334.88 ▲0.54
Add New Post /wp-admin/post-new.php1,515 ▼1823.23 ▼0.18616.09 ▼27.2264.51 ▲13.54
Media Library /wp-admin/upload.php1,385 ▼34.23 ▲0.0894.28 ▼11.1242.48 ▼0.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

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)
Even though no errors were found, 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bstabs/bstabs.php:62

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: tab, tabs, music, tabulature, tabulatures

bstabs/bstabs.php Passed 13 tests

The main file in "BSTabs" v. 1.12 serves as a complement to information provided in readme.txt and as the entry point to the plugin
49 characters long description:
WP Extension for simple management of tabulatures

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 detected1,176 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2168105976
PO File17478162
CSS19137
JavaScript1011

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity93.50
▷ Minimum class complexity27.00
▷ Maximum class complexity160.00
Average method complexity5.87
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods38
▷ Static methods00.00%
▷ Public methods3694.74%
▷ Protected methods00.00%
▷ Private methods25.26%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/tef.png0.77KB0.92KB0.00%
icons/audio.png3.20KB0.67KB▼ 79.01%
icons/default.png0.47KB0.44KB▼ 6.19%
icons/link.png0.70KB0.62KB▼ 11.20%
icons/midi.png0.67KB0.80KB0.00%