90% exclude-pages-from-menu

Code Review | Exclude Pages From Menu

WordPress plugin Exclude Pages From Menu scored90%from 54 tests.

About plugin

  • Plugin page: exclude-pages-fro...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.7
  • WordPress version: 6.3.1
  • First release: Apr 28, 2017
  • Latest release: Mar 14, 2021
  • Number of updates: 10
  • Update frequency: every 142.5 days
  • Top authors: vinod dalvi (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

10,000+ active /98,121 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.99ms] Passed 4 tests

Analyzing server-side resources used by Exclude Pages From Menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.55 ▼2.26
Dashboard /wp-admin3.38 ▲0.0748.72 ▼9.09
Posts /wp-admin/edit.php3.49 ▲0.1350.38 ▲3.45
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.55 ▼24.05
Media Library /wp-admin/upload.php3.30 ▲0.0744.89 ▲7.55

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Exclude Pages From Menu: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲5014.40 ▼0.252.11 ▼0.0342.96 ▲2.47
Dashboard /wp-admin2,220 ▲435.69 ▲0.0490.60 ▼1.8139.20 ▼10.34
Posts /wp-admin/edit.php2,125 ▲252.03 ▲0.0139.99 ▲3.0036.55 ▲2.30
Add New Post /wp-admin/post-new.php1,543 ▲1523.16 ▼0.04687.47 ▲12.2464.05 ▲8.76
Media Library /wp-admin/upload.php1,425 ▲284.21 ▲0.04116.07 ▼13.5450.26 ▼4.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
The SRP test was a success

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 on the user side

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
5 plugin tags: exclude pages from menu, hide pages, remove pages from navigation, exclude pages, menu

exclude-pages-from-menu/exclude-pages-from-menu.php Passed 13 tests

The principal PHP file in "Exclude Pages From Menu" v. 3.0 is loaded by WordPress automatically on each request
112 characters long description:
The plugin provides option in the page edit screen to remove page from navigation menu in the front end of site.

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
Everything looks great! No dangerous files found in this plugin329 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP9131429273
PO File17838
JavaScript13518

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
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
No PNG images were found in this plugin