84% novel-navigation-links

Code Review | Novel Navigation Links

WordPress plugin Novel Navigation Links scored84%from 54 tests.

About plugin

  • Plugin page: novel-navigation-...
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 28, 2016
  • Latest release: Oct 1, 2016
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: milgar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,192 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼21.77ms] Passed 4 tests

This is a short check of server-side resources used by Novel Navigation Links
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.99 ▼5.04
Dashboard /wp-admin3.31 ▼0.0450.98 ▼18.62
Posts /wp-admin/edit.php3.36 ▲0.0052.04 ▼3.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.70 ▼49.10
Media Library /wp-admin/upload.php3.23 ▲0.0038.37 ▼14.32

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Novel Navigation Links: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.75 ▲0.441.80 ▲0.0943.30 ▼5.26
Dashboard /wp-admin2,189 ▲125.60 ▼0.0291.43 ▼4.6141.01 ▲0.25
Posts /wp-admin/edit.php2,100 ▼32.05 ▲0.0041.29 ▼0.5435.24 ▼2.38
Add New Post /wp-admin/post-new.php1,550 ▲2423.22 ▲5.82641.87 ▲29.3055.00 ▼2.73
Media Library /wp-admin/upload.php1,403 ▲64.27 ▲0.06107.21 ▼7.8448.78 ▲4.33

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/novel-navigation-links/novel-navigation-links.php

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: novel, navigation, book

novel-navigation-links/novel-navigation-links.php Passed 13 tests

"Novel Navigation Links" version 0.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
107 characters long description:
Adds associated navigation links to bottom and top of content if there is a page or post with similar slug.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected100 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1191167
PO File17733

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin