10% navegg

Code Review | Navegg Analytics

WordPress plugin Navegg Analytics scored10%from 54 tests.

About plugin

  • Plugin page: navegg
  • Plugin version: 3.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-4.9.5
  • WordPress version: 6.3.1
  • First release: May 18, 2012
  • Latest release: Oct 14, 2020
  • Number of updates: 40
  • Update frequency: every 76.8 days
  • Top authors: navegg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /6,229 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/navegg/lang/texts.php+11
    Undefined index: idioma_nvg

Server metrics [RAM: ▼1.96MB] [CPU: ▼54.53ms] Passed 4 tests

Analyzing server-side resources used by Navegg Analytics
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.433.83 ▼38.93
Dashboard /wp-admin2.05 ▼1.265.47 ▼45.40
Posts /wp-admin/edit.php2.05 ▼1.315.82 ▼42.23
Add New Post /wp-admin/post-new.php2.05 ▼3.847.48 ▼91.54
Media Library /wp-admin/upload.php2.05 ▼1.186.07 ▼26.75

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
ID_NAVEGG
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Navegg Analytics
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10213.22 ▼1.461.85 ▲0.2040.98 ▼1.35
Dashboard /wp-admin2,246 ▲615.83 ▲0.0299.43 ▼18.5481.56 ▲35.73
Posts /wp-admin/edit.php2,125 ▲332.04 ▲0.0436.09 ▼1.5033.55 ▲1.71
Add New Post /wp-admin/post-new.php1,545 ▲1223.10 ▼0.00746.01 ▲86.2864.79 ▼2.85
Media Library /wp-admin/upload.php1,428 ▲434.25 ▲0.0598.41 ▲3.7362.87 ▲22.45

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
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/navegg/lang/texts.php+11
    Undefined index: idioma_nvg
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: idioma_nvg in wp-content/plugins/navegg/lang/texts.php on line 13
    • > PHP Notice
      Undefined index: idioma_nvg in wp-content/plugins/navegg/lang/texts.php on line 11
    • > PHP Notice
      Undefined index: idioma_nvg in wp-content/plugins/navegg/lang/texts.php on line 11
    • > PHP Notice
      Undefined index: idioma_nvg in wp-content/plugins/navegg/lang/texts.php on line 11
    • > PHP Notice
      Undefined variable: idioma_nvg in wp-content/plugins/navegg/lang/texts.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function getTextNvg() in wp-content/plugins/navegg/nvgWpInit.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/navegg/contents/cssInit.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/navegg/lang/texts.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/navegg/lang/texts.php:15
    • > PHP Notice
      Undefined variable: idioma_nvg in wp-content/plugins/navegg/lang/texts.php on line 13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (Plugin settings)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === navegg === )
Please take inspiration from this readme.txt

navegg/naveggWp.php 92% from 13 tests

"Navegg Analytics" version 3.3.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("navegg.php" instead of "naveggWp.php")

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
Everything looks great! No dangerous files found in this plugin779 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP8319187778
SVG1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
6 PNG files occupy 0.33MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
contents/nvgicon.png0.28KB0.21KB▼ 23.51%
contents/ui_wp_nvg_usr.PNG37.75KB11.67KB▼ 69.09%
screenshot-1.png125.50KB55.21KB▼ 56.01%
contents/ui_wp_nvg.png115.18KB33.19KB▼ 71.18%
contents/dashboard.png57.12KB17.67KB▼ 69.07%