77% missing-menu-items

Code Review | Missing Menu Items

WordPress plugin Missing Menu Items scored77%from 54 tests.

About plugin

  • Plugin page: missing-menu-items
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.1
  • WordPress version: 6.3.1
  • First release: Oct 28, 2022
  • Latest release: Nov 21, 2022
  • Number of updates: 6
  • Update frequency: every 4.0 days
  • Top authors: blockstyles (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /2,133 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Missing Menu Items
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.53 ▲7.64
Dashboard /wp-admin3.32 ▼0.0349.86 ▼13.98
Posts /wp-admin/edit.php3.38 ▲0.0247.53 ▲0.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.43 ▼10.67
Media Library /wp-admin/upload.php3.25 ▲0.0236.64 ▲2.83
Navigation Menu /wp-admin/edit.php?post_type=wp_navigation3.2933.92
Template Parts /wp-admin/site-editor.php?postType=wp_template_part3.1424.20
Reusable Blocks /wp-admin/edit.php?post_type=wp_block3.3036.48
Templates /wp-admin/site-editor.php?postType=wp_template3.1428.40

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Missing Menu Items
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.29 ▼1.101.64 ▼0.1342.67 ▲0.02
Dashboard /wp-admin2,222 ▲314.86 ▼1.02111.64 ▲3.1141.97 ▲1.59
Posts /wp-admin/edit.php2,105 ▲162.04 ▼0.0137.26 ▼0.6532.72 ▼0.37
Add New Post /wp-admin/post-new.php1,561 ▲2819.53 ▼3.93646.45 ▼25.1355.06 ▼1.54
Media Library /wp-admin/upload.php1,404 ▲134.24 ▲0.0295.15 ▼6.6641.72 ▼4.55
Navigation Menu /wp-admin/edit.php?post_type=wp_navigation1,0511.9733.0229.66
Template Parts /wp-admin/site-editor.php?postType=wp_template_part280.440.073.11
Reusable Blocks /wp-admin/edit.php?post_type=wp_block1,1356.67139.9130.52
Templates /wp-admin/site-editor.php?postType=wp_template280.440.063.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/missing-menu-items/ea-missing-menu-items.php:90

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/site-editor.php?postType=wp_template_part
    • > Network (severe)
    wp-admin/site-editor.php?postType=wp_template_part - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/site-editor.php?postType=wp_template
    • > Network (severe)
    wp-admin/site-editor.php?postType=wp_template - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can look at the official readme.txt

missing-menu-items/ea-missing-menu-items.php 85% from 13 tests

"Missing Menu Items" version 1.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("missing-menu-items.php" instead of "ea-missing-menu-items.php")
  • Requires at least: Required version must match the one declared in readme.txt ("5.9" instead of "6.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin50 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP193849
SVG1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.97MB with 0.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
.wordpress-org/screenshot-1.png53.35KB15.87KB▼ 70.26%
.wordpress-org/icon-256x256.png6.82KB3.18KB▼ 53.44%
.wordpress-org/icon-128x128.png3.14KB1.56KB▼ 50.23%
.wordpress-org/screenshot-3.png254.49KB67.99KB▼ 73.28%
.wordpress-org/screenshot-5.png142.66KB31.86KB▼ 77.67%