10% line-styled-menu

Code Review | Line Style Menus - Beautiful line styled menus

WordPress plugin Line Style Menus - Beautiful line styled menus scored10%from 54 tests.

About plugin

  • Plugin page: line-styled-menu
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.4.1
  • WordPress version: 6.3.1
  • First release: Feb 6, 2016
  • Latest release: Feb 6, 2016
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: cookforweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,391 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/line-styled-menu/line-style-menu.php+397
    Declaration of Walker_CookforWeb_Menu::start_lvl(&$output) should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = NULL)

Server metrics [RAM: ▼1.96MB] [CPU: ▼51.33ms] Passed 4 tests

This is a short check of server-side resources used by Line Style Menus - Beautiful line styled menus
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.97 ▼37.51
Dashboard /wp-admin2.05 ▼1.265.13 ▼41.27
Posts /wp-admin/edit.php2.05 ▼1.315.44 ▼43.06
Add New Post /wp-admin/post-new.php2.05 ▼3.845.80 ▼83.46
Media Library /wp-admin/upload.php2.05 ▼1.187.38 ▼26.05

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Line Style Menus - Beautiful line styled menus
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▼0.281.64 ▼0.1244.10 ▼7.78
Dashboard /wp-admin2,209 ▲214.87 ▼1.01104.15 ▼4.6639.34 ▼9.12
Posts /wp-admin/edit.php2,089 ▼02.16 ▲0.1333.36 ▼7.6535.41 ▼5.65
Add New Post /wp-admin/post-new.php1,534 ▼123.26 ▲0.01664.81 ▲25.5461.11 ▲12.04
Media Library /wp-admin/upload.php1,391 ▼04.22 ▼0.0199.78 ▲0.0243.14 ▲1.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/line-styled-menu/line-style-menu.php+397
    Declaration of Walker_CookforWeb_Menu::start_lvl(&$output) should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = NULL)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/line-styled-menu/line-style-menu.php:83

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI found ("")
You can look at the official readme.txt

line-styled-menu/line-style-menu.php 92% from 13 tests

The main file in "Line Style Menus - Beautiful line styled menus" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("line-styled-menu.php" instead of "line-style-menu.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,278 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1358812,107
PHP172182169
Markdown1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity23.00
▷ Minimum class complexity4.00
▷ Maximum class complexity42.00
Average method complexity5.89
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.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