10% wp-alphabetic-navigation

Code Review | WP Alphabetic Navigation

WordPress plugin WP Alphabetic Navigation scored 10% from 54 tests.

About plugin

  • Plugin page: wp-alphabetic-nav...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.8
  • WordPress version: 6.3.1
  • First release: Dec 12, 2013
  • Latest release: Dec 13, 2013
  • Number of updates: 12
  • Update frequency: every 0.2 days
  • Top authors: Boris Volkovich (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,716 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/wp-alphabetic-navigation/wpalphabeticnavigation.php+119
    Undefined index: letter

Server metrics [RAM: ▼1.92MB] [CPU: ▼57.37ms] Passed 4 tests

This is a short check of server-side resources used by WP Alphabetic Navigation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.396.21 ▼38.91
Dashboard /wp-admin2.09 ▼1.216.73 ▼43.84
Posts /wp-admin/edit.php2.09 ▼1.276.50 ▼46.25
Add New Post /wp-admin/post-new.php2.09 ▼3.806.72 ▼100.47
Media Library /wp-admin/upload.php2.09 ▼1.145.75 ▼33.50
WP Alphabetic Navigation /wp-admin/options-general.php?page=wp-alphabetic-navigation/wpalphabeticnavigation.php2.097.02

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

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

Browser metrics Passed 4 tests

WP Alphabetic Navigation: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲7814.74 ▲0.451.78 ▲0.0243.79 ▼4.69
Dashboard /wp-admin2,213 ▲254.84 ▼1.04107.97 ▼9.0841.62 ▼0.41
Posts /wp-admin/edit.php2,096 ▲42.00 ▼0.1334.33 ▼5.8137.62 ▲1.24
Add New Post /wp-admin/post-new.php1,377 ▼14216.72 ▼6.48574.38 ▼159.8645.70 ▼20.04
Media Library /wp-admin/upload.php1,392 ▲44.16 ▲0.0192.61 ▼17.0144.94 ▼1.39
WP Alphabetic Navigation /wp-admin/options-general.php?page=wp-alphabetic-navigation/wpalphabeticnavigation.php8392.0524.1921.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/wp-alphabetic-navigation/wpalphabeticnavigation.php+119
    Undefined index: letter
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-alphabetic-navigation/wpalphabeticnavigation.php
    • > Notice in wp-content/plugins/wp-alphabetic-navigation/wpalphabeticnavigation.php+119
    Undefined index: letter
    • > GET request to /wp-admin/options-general.php?page=wp-alphabetic-navigation/wpalphabeticnavigation.php
    • > Notice in wp-content/plugins/wp-alphabetic-navigation/wpalphabeticnavigation.php+43
    Undefined index: alpha_lang

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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-alphabetic-navigation/wpalphabeticnavigation.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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
6 plugin tags: navigation, pages, letters, alphabetic, paging...

wp-alphabetic-navigation/wpalphabeticnavigation.php 92% from 13 tests

The entry point to "WP Alphabetic Navigation" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-alphabetic-navigation.php" instead of "wpalphabeticnavigation.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin106 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11922106

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
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
No PNG files were detected