84% menu-per-pages

Code Review | Menu Per Pages

WordPress plugin Menu Per Pages scored84%from 54 tests.

About plugin

  • Plugin page: menu-per-pages
  • Plugin version: 5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6.1
  • WordPress version: 6.3.1
  • First release: Nov 12, 2013
  • Latest release: Nov 15, 2013
  • Number of updates: 5
  • Update frequency: every 2.8 days
  • Top authors: ddisofttech (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

400+ active /7,479 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Menu Per Pages
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.98 ▲1.76
Dashboard /wp-admin3.32 ▼0.0348.39 ▼13.38
Posts /wp-admin/edit.php3.37 ▲0.0147.44 ▼2.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0297.22 ▼6.33
Media Library /wp-admin/upload.php3.24 ▲0.0138.73 ▲4.65

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 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

This is an overview of browser requirements for Menu Per Pages
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.18 ▼1.191.95 ▲0.2246.83 ▲6.47
Dashboard /wp-admin2,221 ▲214.86 ▼0.94109.77 ▲0.7839.89 ▼4.79
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0333.93 ▼3.2236.30 ▲2.06
Add New Post /wp-admin/post-new.php6,255 ▲4,72318.80 ▼4.30864.38 ▲168.4266.60 ▲5.74
Media Library /wp-admin/upload.php1,403 ▼04.19 ▼0.1298.01 ▼7.7245.71 ▲0.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/menu-per-pages/menu-per-pages.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Donate link: Invalid URI found ("")
You can take inspiration from this readme.txt

menu-per-pages/menu-per-pages.php Passed 13 tests

The main file in "Menu Per Pages" v. 5.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
80 characters long description:
Wp Menu Per Pages Plugin let you provide to access a menu on your selected page.

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
No dangerous file extensions were detected63 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2183063

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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