84% wp-quick-menu

Code Review | WordPress Quick Menu

WordPress plugin WordPress Quick Menu scored84%from 54 tests.

About plugin

  • Plugin page: wp-quick-menu
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-4.1
  • WordPress version: 6.3.1
  • First release: Nov 29, 2014
  • Latest release: Jan 29, 2015
  • Number of updates: 7
  • Update frequency: every 8.9 days
  • Top authors: mahabub81 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /2,461 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼1.64ms] Passed 4 tests

This is a short check of server-side resources used by WordPress Quick Menu
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2748.48 ▲6.60
Dashboard /wp-admin3.58 ▲0.2758.79 ▲9.40
Posts /wp-admin/edit.php3.69 ▲0.3352.11 ▼3.85
Add New Post /wp-admin/post-new.php6.18 ▲0.2989.65 ▼18.59
Media Library /wp-admin/upload.php3.51 ▲0.2744.46 ▲9.29

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Quick Menu
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8613.23 ▼1.201.94 ▲0.3543.33 ▼4.03
Dashboard /wp-admin2,216 ▲284.88 ▲0.01110.09 ▲4.0643.86 ▼2.71
Posts /wp-admin/edit.php2,096 ▲42.02 ▼0.0037.28 ▼7.3235.12 ▼0.73
Add New Post /wp-admin/post-new.php6,222 ▲4,69426.01 ▲7.62886.55 ▲254.9954.05 ▲6.40
Media Library /wp-admin/upload.php1,395 ▲44.13 ▼0.11114.37 ▲15.0047.02 ▲0.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-quick-menu/templates/menu_form_template.php

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Select Menu), #2 (Add post/page to Menu), #3 (Menu item properties), #4 (Advance settings), #5 (Remove post/page from menu)
You can look at the official readme.txt

wp-quick-menu/wp-quick-menu.php Passed 13 tests

"WordPress Quick Menu" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
46 characters long description:
add page/post to menu on create or edit screen

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin594 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP299196491
CSS116056
JavaScript111047

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity95.00
▷ Minimum class complexity95.00
▷ Maximum class complexity95.00
Average method complexity3.61
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods36
▷ Static methods00.00%
▷ Public methods513.89%
▷ Protected methods00.00%
▷ Private methods3186.11%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/img/settings.png0.76KB0.73KB▼ 4.50%