68% quick-navigation-right-bar

Code Review | Quick Navigation Right Bar

WordPress plugin Quick Navigation Right Bar scored68%from 54 tests.

About plugin

  • Plugin page: quick-navigation-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-4.0.1
  • WordPress version: 6.3.1
  • First release: Apr 1, 2015
  • Latest release: Apr 1, 2015
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: noitrangbanhcuon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,048 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼38.79ms] Passed 4 tests

A check of server-side resources used by Quick Navigation Right Bar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.32 ▼6.79
Dashboard /wp-admin3.01 ▼0.3026.82 ▼26.37
Posts /wp-admin/edit.php3.01 ▼0.3525.82 ▼29.03
Add New Post /wp-admin/post-new.php3.01 ▼2.8824.89 ▼85.57
Media Library /wp-admin/upload.php3.01 ▼0.2324.01 ▼14.19
Quick Navigation Right Bar Option /wp-admin/options-general.php?page=QuickNavigationRightBarOption3.0127.34

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Quick Navigation Right Bar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.54 ▲0.192.00 ▲0.4250.54 ▲2.04
Dashboard /wp-admin2,202 ▲225.60 ▼0.0792.60 ▼8.2445.10 ▼0.15
Posts /wp-admin/edit.php2,101 ▼21.99 ▼0.0038.28 ▼2.4737.43 ▼1.29
Add New Post /wp-admin/post-new.php1,529 ▲220.96 ▼2.26712.51 ▼22.8553.13 ▼15.09
Media Library /wp-admin/upload.php1,404 ▲74.12 ▼0.09108.96 ▼23.0056.48 ▲6.15
Quick Navigation Right Bar Option /wp-admin/options-general.php?page=QuickNavigationRightBarOption7731.127.2823.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=QuickNavigationRightBarOption
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=QuickNavigationRightBarOption
    • > Notice in wp-content/plugins/quick-navigation-right-bar/qnrb_backend.php+10
    Undefined index: qnrb_hidden

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
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/quick-navigation-right-bar/qnrb_backend.php:24
    • > PHP Warning
      include(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/quick-navigation-right-bar/index.php on line 11
    • > PHP Notice
      Undefined index: qnrb_hidden in wp-content/plugins/quick-navigation-right-bar/qnrb_backend.php on line 10
    • > PHP Warning
      include(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/quick-navigation-right-bar/index.php on line 11
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/quick-navigation-right-bar/index.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_super_admin() in wp-content/plugins/quick-navigation-right-bar/index.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots require images: #3 (`/assets/screenshot-3.jpg`), #4 (`/assets/screenshot-4.jpg`)
The official readme.txt is a good inspiration

quick-navigation-right-bar/index.php 92% from 13 tests

The main PHP script in "Quick Navigation Right Bar" version 1.0.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("quick-navigation-right-bar.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin189 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2815189

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png6.76KB2.95KB▼ 56.33%