84% menu-to-page-display

Code Review | Menu to Page Display

WordPress plugin Menu to Page Display scored84%from 54 tests.

About plugin

  • Plugin page: menu-to-page-display
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2014
  • Latest release: Feb 10, 2014
  • Number of updates: 6
  • Update frequency: every 0.8 days
  • Top authors: RustyBadRobot (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /2,195 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Menu to Page Display
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.38 ▼2.63
Dashboard /wp-admin3.31 ▲0.0050.25 ▼1.64
Posts /wp-admin/edit.php3.36 ▲0.0052.37 ▼2.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.85 ▼10.75
Media Library /wp-admin/upload.php3.23 ▲0.0037.17 ▲1.47

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Menu to Page Display
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.58 ▲0.201.60 ▼0.1639.89 ▼3.99
Dashboard /wp-admin2,198 ▲185.58 ▼0.1085.60 ▼8.0041.03 ▼1.43
Posts /wp-admin/edit.php2,079 ▼242.03 ▼0.1035.68 ▼7.8935.33 ▼3.80
Add New Post /wp-admin/post-new.php1,535 ▲917.97 ▼5.09640.70 ▲16.9178.91 ▲31.50
Media Library /wp-admin/upload.php1,397 ▲34.18 ▼0.0298.24 ▼13.4441.98 ▼4.84

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

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 | 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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/menu-to-page-display/menu-to-page-display.php:152

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
10 plugin tags: grid, page, pages, display, menu...

menu-to-page-display/menu-to-page-display.php Passed 13 tests

The primary PHP file in "Menu to Page Display" version 1.0 is used by WordPress to initiate all plugin functionality
57 characters long description:
Display menu in a page using the [menu-display] shortcode

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin103 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12534388
CSS16515

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions3
▷ Named functions3100.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
There were not PNG files found in your plugin