89% black-studio-touch-dropdown-menu

Code Review | Black Studio Touch Dropdown Menu

WordPress plugin Black Studio Touch Dropdown Menu scored89%from 54 tests.

About plugin

  • Plugin page: black-studio-touc...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: Sep 3, 2012
  • Latest release: Jul 1, 2022
  • Number of updates: 21
  • Update frequency: every 171.0 days
  • Top authors: marcochiesi (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

2,000+ active /48,230 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 gracefully, with no errors

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

An overview of server-side resources used by Black Studio Touch Dropdown Menu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.45 ▼1.67
Dashboard /wp-admin3.32 ▼0.0343.99 ▼11.85
Posts /wp-admin/edit.php3.37 ▲0.0144.81 ▼1.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.51 ▼15.08
Media Library /wp-admin/upload.php3.24 ▲0.0134.41 ▲2.50

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Black Studio Touch Dropdown Menu
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲13813.58 ▼0.715.07 ▲3.4041.14 ▼0.20
Dashboard /wp-admin2,209 ▲244.81 ▼1.0897.39 ▼15.8641.54 ▼3.30
Posts /wp-admin/edit.php2,089 ▲32.03 ▼0.1437.40 ▲1.6033.40 ▲1.71
Add New Post /wp-admin/post-new.php1,533 ▼022.98 ▼0.30618.83 ▼50.0949.98 ▼5.14
Media Library /wp-admin/upload.php1,388 ▲34.43 ▲0.2696.13 ▼19.0440.56 ▼6.92

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

black-studio-touch-dropdown-menu/black-studio-touch-dropdown-menu.php 92% from 13 tests

The main PHP script in "Black Studio Touch Dropdown Menu" version 1.0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected95 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32210252
JavaScript2211243

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected