62% convizit-analytics

Code Review | Convizit Analytics

WordPress plugin Convizit Analytics scored62%from 54 tests.

About plugin

  • Plugin page: convizit-analytics
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Oct 5, 2016
  • Latest release: Jan 7, 2017
  • Number of updates: 10
  • Update frequency: every 12.1 days
  • Top authors: chaka98 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /628 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.92MB] [CPU: ▼36.37ms] Passed 4 tests

A check of server-side resources used by Convizit Analytics
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.38 ▼0.0726.63 ▼10.91
Dashboard /wp-admin3.03 ▼0.2826.36 ▼22.16
Posts /wp-admin/edit.php3.03 ▼0.3324.42 ▼26.85
Add New Post /wp-admin/post-new.php3.03 ▼2.8621.95 ▼83.69
Media Library /wp-admin/upload.php3.03 ▼0.2022.74 ▼12.76
Convizit Analytics /wp-admin/options-general.php?page=convizit-admin3.0323.93

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

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

Browser metrics Passed 4 tests

Convizit Analytics: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲7013.25 ▼1.141.83 ▲0.1444.03 ▲4.44
Dashboard /wp-admin2,210 ▲224.89 ▼1.0095.65 ▼12.3138.76 ▼4.32
Posts /wp-admin/edit.php2,093 ▲12.00 ▼0.0539.01 ▼3.5735.27 ▼2.20
Add New Post /wp-admin/post-new.php1,545 ▲3118.32 ▲0.66584.33 ▼19.6350.85 ▼5.50
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0297.26 ▲0.1647.03 ▲5.43
Convizit Analytics /wp-admin/options-general.php?page=convizit-admin7832.0622.3528.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% 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 without warnings or errors
    • > Notice in wp-content/plugins/convizit-analytics/convizit analytics.php+79
    Undefined index: token_id
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=convizit-admin
    • > Notice in wp-content/plugins/convizit-analytics/convizit analytics.php+79
    Undefined index: token_id
    • > GET request to /wp-admin/options-general.php?page=convizit-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=convizit-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/convizit-analytics/convizit_analytics_js.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/convizit-analytics/page.php:2
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/convizit-analytics/convizit_analytics_js.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/convizit-analytics/convizit_analytics_js.php on line 8

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 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI ("-")
You can take inspiration from this readme.txt

convizit-analytics/convizit analytics.php 92% from 13 tests

The entry point to "Convizit Analytics" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("convizit-analytics.php" instead of "convizit analytics.php")

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
No dangerous file extensions were detected102 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP31415102

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity3.00
▷ Minimum class complexity2.00
▷ Maximum class complexity4.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin