83% wp-admin-quicknav

Code Review | WP Admin Quicknav

WordPress plugin WP Admin Quicknav scored83%from 54 tests.

About plugin

  • Plugin page: wp-admin-quicknav
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.2
  • WordPress version: 6.3.1
  • First release: Aug 27, 2014
  • Latest release: Jul 26, 2015
  • Number of updates: 4
  • Update frequency: every 83.5 days
  • Top authors: deardooley (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /842 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.97ms] Passed 4 tests

Server-side resources used by WP Admin Quicknav
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.71 ▼2.29
Dashboard /wp-admin3.31 ▲0.0144.96 ▼1.91
Posts /wp-admin/edit.php3.36 ▲0.0148.29 ▲0.38
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.31 ▼8.05
Media Library /wp-admin/upload.php3.24 ▲0.0141.39 ▲9.39

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Admin Quicknav
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.501.73 ▼0.2838.14 ▼8.46
Dashboard /wp-admin2,203 ▲124.87 ▼0.02108.49 ▲8.7642.14 ▼1.75
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0139.89 ▼2.1534.74 ▼2.52
Add New Post /wp-admin/post-new.php1,534 ▲1523.29 ▲0.13588.64 ▼6.7856.53 ▲4.60
Media Library /wp-admin/upload.php1,388 ▲34.14 ▼0.22100.15 ▲0.8741.76 ▼1.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-admin-quicknav/wp_admin_quicknav.php:111

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Use the dropdown at the top of the page to quickly navigate between posts, pages, and custom post types.) image not found
You can look at the official readme.txt

wp-admin-quicknav/wp_admin_quicknav.php 85% from 13 tests

The main file in "WP Admin Quicknav" v. 0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-admin-quicknav.php" instead of "wp_admin_quicknav.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 195 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected144 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1213159
Markdown224058
JSON10027

PHP code Passed 2 tests

Analyzing 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.62
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods266.67%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin