77% quicknav

Code Review | Quicknav

WordPress plugin Quicknav scored77%from 54 tests.

About plugin

  • Plugin page: quicknav
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.2-6.0.2
  • WordPress version: 6.3.1
  • First release: Mar 18, 2020
  • Latest release: Oct 1, 2022
  • Number of updates: 8
  • Update frequency: every 116.0 days
  • Top authors: themelooks (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /1,626 total downloads

Benchmarks

Plugin footprint 82% 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.35MB] [CPU: ▼1.92ms] 75% from 4 tests

A check of server-side resources used by Quicknav
It is recommended to improve the following
  • CPU: You should keep total CPU usage under 500.00ms (currently 533.50ms on /wp-admin/admin.php?page=quicknav-recommended-plugin)
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3741.87 ▲1.96
Dashboard /wp-admin3.71 ▲0.3753.55 ▼11.16
Posts /wp-admin/edit.php3.76 ▲0.4149.24 ▲1.32
Add New Post /wp-admin/post-new.php6.23 ▲0.3491.52 ▲0.21
Media Library /wp-admin/upload.php3.55 ▲0.3237.02 ▲3.11
Settings /wp-admin/admin.php?page=quicknav_page3.5644.21
Recommended Plugins /wp-admin/admin.php?page=quicknav-recommended-plugin3.76533.50

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Quicknav
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,059 ▲28815.05 ▲0.705.93 ▲4.0340.73 ▼3.77
Dashboard /wp-admin2,378 ▲2046.31 ▲0.67107.42 ▲9.0839.89 ▼3.57
Posts /wp-admin/edit.php2,303 ▲2003.58 ▲1.5145.92 ▲9.1541.30 ▲5.29
Add New Post /wp-admin/post-new.php1,563 ▲3723.45 ▼0.05654.53 ▼20.7236.93 ▼12.31
Media Library /wp-admin/upload.php1,440 ▲404.34 ▲0.1480.57 ▼15.4940.76 ▲0.48
Settings /wp-admin/admin.php?page=quicknav_page6,6533.3154.5981.07
Recommended Plugins /wp-admin/admin.php?page=quicknav-recommended-plugin1,4003.2543.3271.29

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/quicknav/quicknav.php:28

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=quicknav_page
    • > Network (severe)
    wp-content/plugins/quicknav/assets/css/font-awesome.min.css?ver=4.0.7 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=quicknav_page
    • > Network (severe)
    wp-content/plugins/quicknav/admin/settings-fields/assets/fonts/fontawesome-webfont.woff2?v=4.7.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=quicknav_page
    • > Network (severe)
    wp-content/plugins/quicknav/admin/settings-fields/assets/fonts/fontawesome-webfont.woff?v=4.7.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=quicknav_page
    • > Network (severe)
    wp-content/plugins/quicknav/admin/settings-fields/assets/fonts/fontawesome-webfont.ttf?v=4.7.0 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
Attributes that need to be fixed:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #0, #0, #0, #0, #0 in quicknav/assets to your readme.txt
  • Requires php: Version not formatted correctly
You can look at the official readme.txt

quicknav/quicknav.php 92% from 13 tests

The entry point to "Quicknav" version 1.3.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 223 characters long)

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
No dangerous file extensions were detected11,824 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
SVG40128,961
PHP295613302,121
CSS45727566
JavaScript28814176

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.21
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods82
▷ Static methods78.54%
▷ Public methods4656.10%
▷ Protected methods00.00%
▷ Private methods3643.90%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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