89% vantevo-analytics

Code Review | Vantevo Analytics

WordPress plugin Vantevo Analytics scored89%from 54 tests.

About plugin

  • Plugin page: vantevo-analytics
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1
  • WordPress version: 6.3.1
  • First release: Mar 25, 2022
  • Latest release: Jan 19, 2023
  • Number of updates: 9
  • Update frequency: every 34.1 days
  • Top authors: vantevo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /675 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
Install script ran successfully

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

Server-side resources used by Vantevo Analytics
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0537.82 ▼2.40
Dashboard /wp-admin3.34 ▲0.0446.65 ▼5.15
Posts /wp-admin/edit.php3.39 ▲0.0348.80 ▼2.85
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.52 ▼2.79
Media Library /wp-admin/upload.php3.26 ▲0.0340.32 ▲5.03
Vantevo Analytics /wp-admin/options-general.php?page=vantevo3.2333.21

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 24 new options
New WordPress options
vantevo_option_domain
vantevo_option_hash
vantevo_option_scroll_page_25
vantevo_option_active_ecommerce
theysaidso_admin_options
widget_recent-comments
vantevo_option_scroll_page_75
db_upgraded
vantevo_option_manual_pageview
widget_recent-posts
...

Browser metrics Passed 4 tests

Vantevo Analytics: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲4914.29 ▼0.062.11 ▼0.0643.44 ▼4.07
Dashboard /wp-admin2,206 ▲295.59 ▼0.0092.41 ▲6.7037.20 ▼2.67
Posts /wp-admin/edit.php2,108 ▲51.97 ▲0.0136.71 ▼2.9534.67 ▼1.03
Add New Post /wp-admin/post-new.php1,536 ▲823.13 ▲0.05673.25 ▲31.3967.69 ▲18.09
Media Library /wp-admin/upload.php1,411 ▲84.19 ▲0.1295.29 ▼10.2941.91 ▼1.00
Vantevo Analytics /wp-admin/options-general.php?page=vantevo1,2271.7823.8932.69

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

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 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: No descriptions were found for these screenshots #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in vantevo-analytics/assets to your readme.txt
Please take inspiration from this readme.txt

vantevo-analytics/index.php 85% from 13 tests

The principal PHP file in "Vantevo Analytics" v. 1.1.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 172 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("vantevo-analytics.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,428 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP61981171,152
PO File16499206
CSS14068
JavaScript2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity35.33
▷ Minimum class complexity9.00
▷ Maximum class complexity60.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2480.00%
▷ Protected methods00.00%
▷ Private methods620.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected