99% veltis

Code Review | Veltis Social Proof Notifications App

WordPress plugin Veltis Social Proof Notifications App scored 99% from 54 tests.

About plugin

  • Plugin page: veltis
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.5
  • WordPress version: 5.9.2
  • First release: May 19, 2020
  • Latest release: May 19, 2020
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: veltisio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 230 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.01MB] [CPU: ▼295.06ms] Passed 4 tests

Analyzing server-side resources used by Veltis Social Proof Notifications App
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0150.54 ▼1.66
Dashboard /wp-admin3.42 ▲0.0133.88 ▼0.12
Posts /wp-admin/edit.php3.66 ▲0.0143.13 ▲7.90
Add New Post /wp-admin/post-new.php6.90 ▼0.0798.76 ▼1,170.82
Media Library /wp-admin/upload.php3.31 ▲0.0123.25 ▼7.64

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Veltis Social Proof Notifications App
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /519 ▼3,2254.93 ▼10.707.01 ▲0.142.19 ▼0.47
Dashboard /wp-admin2,937 ▲766.10 ▼0.22118.09 ▼15.77154.26 ▼6.34
Posts /wp-admin/edit.php2,733 ▲393.25 ▲0.0165.46 ▲2.51141.76 ▲2.25
Add New Post /wp-admin/post-new.php1,722 ▲6119.04 ▲2.34387.92 ▼40.23152.26 ▼7.58
Media Library /wp-admin/upload.php1,743 ▲455.50 ▲0.09140.32 ▼0.57183.78 ▼14.78

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% 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: promotion, social proof, popups, notifications, woocommerce...

veltis/veltis.php 85% from 13 tests

The main PHP script in "Veltis Social Proof Notifications App" version 1.1.0 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 226 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected335 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15512281
CSS26153
SVG1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/logo-veltis-1.png21.16KB9.03KB▼ 57.35%