84% wp-different-navigation-on-each-page-and-post

Code Review | WP Different Navigation on Each Page And Post

WordPress plugin WP Different Navigation on Each Page And Post scored84%from 54 tests.

About plugin

  • Plugin page: wp-different-navi...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 30, 2015
  • Latest release: Dec 28, 2017
  • Number of updates: 16
  • Update frequency: every 66.5 days
  • Top authors: rajeshkumawat78 (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

200+ active /8,161 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.15MB] [CPU: ▼10.41ms] Passed 4 tests

A check of server-side resources used by WP Different Navigation on Each Page And Post
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0330.82 ▼5.15
Dashboard /wp-admin3.36 ▲0.0643.81 ▼2.74
Posts /wp-admin/edit.php3.41 ▲0.0644.87 ▼2.79
Add New Post /wp-admin/post-new.php5.19 ▼0.7063.57 ▼30.97
Media Library /wp-admin/upload.php3.28 ▲0.0636.57 ▲2.59
WP Different Navigation Box Settings /wp-admin/options-general.php?page=wp-different-navi-page-post-settings3.2230.96

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_wpdiffnavieachpage_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Different Navigation on Each Page And Post
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.67 ▼0.982.24 ▲0.3938.78 ▼3.81
Dashboard /wp-admin2,212 ▲245.85 ▲0.9797.46 ▼16.6440.57 ▼2.04
Posts /wp-admin/edit.php2,095 ▲62.06 ▲0.0335.23 ▼5.0632.90 ▼3.80
Add New Post /wp-admin/post-new.php1,519 ▼1917.47 ▼0.94666.21 ▲57.9653.24 ▲1.51
Media Library /wp-admin/upload.php1,394 ▲34.15 ▼0.0596.36 ▼2.3939.70 ▼5.14
WP Different Navigation Box Settings /wp-admin/options-general.php?page=wp-different-navi-page-post-settings8952.0226.5232.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_wpdiffnavieachpage_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-different-navi-page-post-settings
    • > Notice in wp-content/plugins/wp-different-navigation-on-each-page-and-post/wp-different-navigation-on-each-page-and-post.php+248
    Trying to access array offset on value of type bool

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: logout user menu, custom navigation, member menu, login user menu, different menu...

wp-different-navigation-on-each-page-and-post/wp-different-navigation-on-each-page-and-post.php Passed 13 tests

The main file in "WP Different Navigation on Each Page And Post" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
77 characters long description:
This plugin are display different-different navigation on each page and post.

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 detected268 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12344243
CSS16925

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin