83% wp-select-box-navi

Code Review | WP Select Box Navi

WordPress plugin WP Select Box Navi scored83%from 54 tests.

About plugin

  • Plugin page: wp-select-box-navi
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5
  • WordPress version: 6.3.1
  • First release: Dec 17, 2012
  • Latest release: Jan 21, 2013
  • Number of updates: 11
  • Update frequency: every 3.3 days
  • Top authors: guesmo (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,847 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼11.28ms] Passed 4 tests

A check of server-side resources used by WP Select Box Navi
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0723.69 ▼16.95
Dashboard /wp-admin3.31 ▼0.0343.97 ▼16.86
Posts /wp-admin/edit.php3.37 ▲0.0145.86 ▼4.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.95 ▼7.09
Media Library /wp-admin/upload.php3.24 ▲0.0134.32 ▼0.01

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

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

Browser metrics Passed 4 tests

WP Select Box Navi: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲14713.44 ▼0.919.41 ▲7.7435.96 ▼5.66
Dashboard /wp-admin2,199 ▲225.64 ▼0.0390.61 ▼2.4942.28 ▲0.28
Posts /wp-admin/edit.php2,107 ▲72.01 ▼0.0139.67 ▼1.5834.64 ▲2.93
Add New Post /wp-admin/post-new.php1,601 ▲7523.42 ▲0.40600.00 ▼74.0051.70 ▼1.54
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.0396.36 ▼5.1842.72 ▼3.62

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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 add_action() in wp-content/plugins/wp-select-box-navi/selectbox.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-select-box-navi === )
You can take inspiration from this readme.txt

wp-select-box-navi/selectbox.php 77% from 13 tests

"WP Select Box Navi" version 0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 153 characters long)
  • Requires at least: Required version must match the one declared in readme.txt ("3.3.2" instead of "3.2")
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-select-box-navi.php" instead of "selectbox.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
Good job! No executable or dangerous file extensions detected82 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1303673
JavaScript2219

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin