84% menu-section-titles

Code Review | Menu Section Titles

WordPress plugin Menu Section Titles scored 84% from 54 tests.

About plugin

  • Plugin page: menu-section-titles
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 24, 2014
  • Latest release: Jul 25, 2014
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: Oxymoron (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active / 2,028 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.34ms] Passed 4 tests

This is a short check of server-side resources used by Menu Section Titles
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.17 ▼5.54
Dashboard /wp-admin3.31 ▲0.0142.62 ▼5.46
Posts /wp-admin/edit.php3.36 ▲0.0146.73 ▼7.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0178.42 ▼19.19
Media Library /wp-admin/upload.php3.23 ▲0.0132.14 ▼2.13

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 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

An overview of browser requirements for Menu Section Titles
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.20 ▼1.221.56 ▼0.3135.67 ▼12.19
Dashboard /wp-admin2,206 ▲154.86 ▼0.03115.43 ▲14.2342.13 ▼1.65
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0035.23 ▼6.5532.69 ▼6.97
Add New Post /wp-admin/post-new.php1,533 ▲1423.40 ▲0.55645.37 ▼82.4254.29 ▼2.78
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0591.92 ▼13.4640.19 ▼4.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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
Even though everything seems fine, this is not 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/menu-section-titles/menu-section-titles.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === menu-section-titles === )
You can take inspiration from this readme.txt

menu-section-titles/menu-section-titles.php 92% from 13 tests

The main PHP file in "Menu Section Titles" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 175 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin24 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1152424

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected