94% advanced-disable-parent-menu-link

Code Review | Advanced Disable Parent Menu Link

WordPress plugin Advanced Disable Parent Menu Link scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-disable-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 5.9.2
  • First release: Jan 24, 2013
  • Latest release: Jan 24, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: kapilchugh (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active / 11,185 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼304.00ms] Passed 4 tests

Server-side resources used by Advanced Disable Parent Menu Link
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0157.79 ▲6.30
Dashboard /wp-admin3.41 ▲0.0033.50 ▼7.43
Posts /wp-admin/edit.php3.64 ▲0.0038.30 ▲0.12
Add New Post /wp-admin/post-new.php6.88 ▼0.0991.23 ▼1,208.72
Media Library /wp-admin/upload.php3.29 ▲0.0024.86 ▲0.05

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Disable Parent Menu Link
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,896 ▲14216.33 ▲0.428.85 ▲2.682.93 ▲0.45
Dashboard /wp-admin2,895 ▲346.16 ▼0.03114.74 ▼21.52155.54 ▼13.73
Posts /wp-admin/edit.php2,688 ▼03.23 ▲0.0169.04 ▲5.65139.47 ▼4.74
Add New Post /wp-admin/post-new.php1,758 ▲9722.18 ▲4.29437.66 ▲43.96156.66 ▲2.97
Media Library /wp-admin/upload.php1,698 ▲35.52 ▼0.01140.55 ▼3.07189.05 ▲1.88

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-disable-parent-menu-link/advanced-disable-parent-menu-link.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Parent menu link is disabled) image not found
Please take inspiration from this readme.txt

advanced-disable-parent-menu-link/advanced-disable-parent-menu-link.php Passed 13 tests

"Advanced Disable Parent Menu Link" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
54 characters long description:
A plugin which allows you to disable parent menu link.

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 plugin24 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png18.60KB7.11KB▼ 61.78%