84% gd-pages-navigator

Code Review | GD Pages Navigator

WordPress plugin GD Pages Navigator scored84%from 54 tests.

About plugin

  • Plugin page: gd-pages-navigator
  • Plugin version: 6.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 20, 2008
  • Latest release: Mar 29, 2023
  • Number of updates: 79
  • Update frequency: every 69.8 days
  • Top authors: GDragoN (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /24,017 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.35ms] Passed 4 tests

Server-side resources used by GD Pages Navigator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.74 ▼2.87
Dashboard /wp-admin3.39 ▲0.0549.76 ▼10.85
Posts /wp-admin/edit.php3.45 ▲0.0949.52 ▼0.80
Add New Post /wp-admin/post-new.php5.91 ▲0.0392.18 ▼16.90
Media Library /wp-admin/upload.php3.26 ▲0.0335.60 ▼2.77

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

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

Browser metrics Passed 4 tests

GD Pages Navigator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.61 ▲0.231.88 ▼0.1543.06 ▼3.17
Dashboard /wp-admin2,192 ▲155.62 ▲0.0288.40 ▼0.7942.31 ▲1.54
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0133.15 ▼10.4833.12 ▼4.52
Add New Post /wp-admin/post-new.php1,526 ▼223.49 ▲0.40651.77 ▼4.5862.47 ▲3.63
Media Library /wp-admin/upload.php1,400 ▼04.27 ▲0.1098.96 ▼3.6146.92 ▲1.75

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_d4p_pages_navigator
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gd-pages-navigator/gdr2/gdr2.core.php:50
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/gd-pages-navigator/widget/form.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gd-pages-navigator/gdr2/gdr2.widget.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gd-pages-navigator/gdr2/gdr2.core.php:50

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
7 plugin tags: navigation, dev4press, custom post types, hierarchy, pages...

gd-pages-navigator/gd-pages-navigator.php 92% from 13 tests

The entry point to "GD Pages Navigator" version 6.2.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 155 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 detected2,231 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP84811,0252,154
CSS213065
JavaScript22112

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity19.64
▷ Minimum class complexity1.00
▷ Maximum class complexity74.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods96
▷ Static methods2627.08%
▷ Public methods8790.62%
▷ Protected methods00.00%
▷ Private methods99.38%
Functions72
▷ Named functions72100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
There were not PNG files found in your plugin