10% dropdown-smu-style

Code Review | Dropdown SMU Link

WordPress plugin Dropdown SMU Link scored 10% from 54 tests.

About plugin

  • Plugin page: dropdown-smu-style
  • Plugin version: 1.1
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jan 8, 2019
  • Latest release: Jan 8, 2019
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: webcreativemaster (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 308 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/dropdown-smu-style/DropdownLinks_Plugin.php+32
    count(): Parameter must be an array or an object that implements Countable

Server metrics [RAM: ▲0.04MB] [CPU: ▼141.14ms] Passed 4 tests

A check of server-side resources used by Dropdown SMU Link
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1533.63 ▲9.51
Dashboard /wp-admin3.08 ▲0.0344.40 ▲1.94
Posts /wp-admin/edit.php3.20 ▲0.0944.33 ▲1.10
Add New Post /wp-admin/post-new.php5.45 ▲0.0289.81 ▼564.47
Media Library /wp-admin/upload.php3.03 ▲0.0234.51 ▼3.11

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 1,531 new files
Database: no new tables, 5 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Dropdown SMU Link
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲7116.12 ▲0.1111.35 ▲1.3746.62 ▼1.48
Dashboard /wp-admin2,979 ▲455.94 ▼0.02129.79 ▼12.55134.86 ▲30.42
Posts /wp-admin/edit.php2,759 ▲202.60 ▼0.2360.70 ▼7.6993.85 ▲2.93
Add New Post /wp-admin/post-new.php1,513 ▼36318.60 ▼0.44372.52 ▲2.56105.65 ▼4.19
Media Library /wp-admin/upload.php1,767 ▼374.99 ▼0.01130.80 ▼17.73151.58 ▲19.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 5 options
    • DropdownLinks_Plugin__version
    • DropdownLinks_Plugin_CanDoSomething
    • DropdownLinks_Plugin_AmAwesome
    • DropdownLinks_Plugin__installed
    • DropdownLinks_Plugin_ATextInput

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
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dropdown-smu-style/dropdown-links.php:77

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 86% 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
These attributes need your attention:
  • Requires at least: Invalid version format
You can take inspiration from this readme.txt

dropdown-smu-style/dropdown-links.php 77% from 13 tests

"Dropdown SMU Link" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Description: The description should be shorter than 140 characters (currently 382 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dropdown-smu-style.php" instead of "dropdown-links.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin20,178 lines of code in 1,511 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.50
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4963.64%
▷ Protected methods2836.36%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/dashlogo.png47.61KB13.42KB▼ 71.80%
images/smuicon.png0.66KB0.57KB▼ 13.46%