84% navu-conversions

Code Review | Navu: Engagement and Conversions

WordPress plugin Navu: Engagement and Conversions scored84%from 54 tests.

About plugin

  • Plugin page: navu-conversions
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Feb 24, 2023
  • Latest release: Oct 25, 2023
  • Number of updates: 9
  • Update frequency: every 27.0 days
  • Top authors: hivepoint (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /195 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼7.91ms] Passed 4 tests

An overview of server-side resources used by Navu: Engagement and Conversions
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1540.07 ▲2.80
Dashboard /wp-admin3.45 ▲0.1047.66 ▼14.27
Posts /wp-admin/edit.php3.56 ▲0.2143.75 ▲1.08
Add New Post /wp-admin/post-new.php6.05 ▲0.1680.09 ▼15.68
Media Library /wp-admin/upload.php3.37 ▲0.1436.13 ▼2.78
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page3.4939.88
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page3.4933.05
Navu Conversions /wp-admin/options-general.php?page=NavuConversions_PluginSettings3.3431.47

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
category_children
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
NavuConversions_Plugin__installed
NavuConversions_Plugin__version
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Navu: Engagement and Conversions
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.66 ▲0.311.66 ▲0.1545.72 ▲5.92
Dashboard /wp-admin2,207 ▲275.55 ▼0.1783.18 ▼3.1436.52 ▼1.76
Posts /wp-admin/edit.php2,112 ▲121.96 ▼0.0833.03 ▼0.7535.49 ▼4.28
Add New Post /wp-admin/post-new.php1,535 ▲722.93 ▲0.04672.71 ▲53.6253.22 ▼9.32
Media Library /wp-admin/upload.php1,412 ▲184.13 ▼0.0893.53 ▼12.4741.95 ▼7.26
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page1,4642.2527.6934.21
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page1,3312.1226.1030.50
Navu Conversions /wp-admin/options-general.php?page=NavuConversions_PluginSettings9171.9921.3827.04

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • category_children
    • NavuConversions_Plugin__version
    • NavuConversions_Plugin__installed
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 6× 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/navu-conversions/NavuConversions_Widgets.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/navu-conversions/NavuConversions_Widgets.php:7
    • > PHP Warning
      include_once(): Failed opening 'NavuConversion_ShortCodeLoader.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/navu-conversions/NavuConversions_ShortCodeScriptLoader.php on line 22
    • > PHP Warning
      include_once(NavuConversion_ShortCodeLoader.php): failed to open stream: No such file or directory in wp-content/plugins/navu-conversions/NavuConversions_ShortCodeScriptLoader.php on line 22
    • > PHP Fatal error
      Uncaught Error: Class 'NavuConversion_ShortCodeLoader' not found in wp-content/plugins/navu-conversions/NavuConversions_ShortCodeScriptLoader.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/navu-conversions/navu-conversions.php:78

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: favorites, marketing, search, navigation, conversion...

navu-conversions/navu-conversions.php Passed 13 tests

The principal PHP file in "Navu: Engagement and Conversions" v. 1.0.2 is loaded by WordPress automatically on each request
85 characters long description:
Use Navu's service to track conversions and target visitors with personalized content

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin777 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9170529777

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity15.50
▷ Minimum class complexity2.00
▷ Maximum class complexity46.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes00.00%
Methods76
▷ Static methods00.00%
▷ Public methods4964.47%
▷ Protected methods2735.53%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin