90% quick-navigation-interface

Code Review | Quick Navigation Interface

WordPress plugin Quick Navigation Interface scored90%from 54 tests.

About plugin

  • Plugin page: quick-navigation-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: May 22, 2015
  • Latest release: Dec 9, 2020
  • Number of updates: 50
  • Update frequency: every 40.6 days
  • Top authors: iandunn (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /4,956 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.02ms] Passed 4 tests

A check of server-side resources used by Quick Navigation Interface
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.22 ▲3.77
Dashboard /wp-admin3.36 ▲0.0547.19 ▼2.98
Posts /wp-admin/edit.php3.41 ▲0.0548.07 ▼2.82
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.01 ▼14.06
Media Library /wp-admin/upload.php3.29 ▲0.0638.25 ▲4.88

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
qni_content_index_expiration_timestamp

Browser metrics Passed 4 tests

This is an overview of browser requirements for Quick Navigation Interface
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲19118.62 ▲4.261.72 ▼0.0939.43 ▼9.10
Dashboard /wp-admin2,260 ▲697.09 ▲1.23120.93 ▲17.7239.25 ▼0.01
Posts /wp-admin/edit.php2,163 ▲716.60 ▲4.6365.80 ▲26.1130.60 ▼9.59
Add New Post /wp-admin/post-new.php1,531 ▲1018.22 ▼4.82595.22 ▼49.1538.43 ▼15.99
Media Library /wp-admin/upload.php1,520 ▲1298.85 ▲4.64126.85 ▲28.9840.77 ▲0.06

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • qni_content_index_expiration_timestamp
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: keyboard, wp-admin, navigation, shortcuts

quick-navigation-interface/bootstrap.php 92% from 13 tests

The entry point to "Quick Navigation Interface" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("quick-navigation-interface.php" instead of "bootstrap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin14,736 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JSON30013,802
JavaScript9144431499
PHP362145223
Markdown2620147
Sass49061
CSS1404

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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
Namespaces1
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%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants3
▷ Global constants3100.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 are no PNG files in this plugin