94% vdz-ringostat-contacts

Code Review | VDZ Ringostat Contacts

WordPress plugin VDZ Ringostat Contacts scored 94% from 54 tests.

About plugin

  • Plugin page: vdz-ringostat-con...
  • Plugin version: 1.4.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8.1
  • WordPress version: 5.8.1
  • First release: Aug 30, 2021
  • Latest release: Oct 27, 2021
  • Number of updates: 9
  • Update frequency: every 6.4 days
  • Top authors: vadim8vz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 144 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼173.75ms] Passed 4 tests

A check of server-side resources used by VDZ Ringostat Contacts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1837.11 ▲14.52
Dashboard /wp-admin3.13 ▲0.0751.51 ▲5.43
Posts /wp-admin/edit.php3.18 ▲0.0640.01 ▼4.49
Add New Post /wp-admin/post-new.php5.49 ▲0.0588.72 ▼700.42
Media Library /wp-admin/upload.php3.07 ▲0.0640.05 ▲4.50

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 2 new options
New WordPress options
vdz_ringostat_contacts_on
vdz_ringostat_contacts_secret_key

Browser metrics Passed 4 tests

A check of browser resources used by VDZ Ringostat Contacts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,920 ▲32416.02 ▲0.4810.35 ▲1.4550.85 ▲2.73
Dashboard /wp-admin2,971 ▲406.05 ▼0.04170.48 ▲28.88140.32 ▲23.15
Posts /wp-admin/edit.php2,743 ▲42.70 ▲0.0065.88 ▼2.3297.84 ▲5.00
Add New Post /wp-admin/post-new.php1,618 ▲321.40 ▼0.25289.40 ▲1.83107.02 ▼2.58
Media Library /wp-admin/upload.php1,814 ▲15.25 ▲0.14148.83 ▼8.34120.10 ▼3.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× 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/vdz-ringostat-contacts/api.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vdz-ringostat-contacts/updated_plugin_admin_notices.php:9

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

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: ringostat, ringostat contacts, contact from 7, contacts, marketing

vdz-ringostat-contacts/vdz-ringostat-contacts.php Passed 13 tests

The primary PHP file in "VDZ Ringostat Contacts" version 1.4.2 is used by WordPress to initiate all plugin functionality
47 characters long description:
Интеграция Ringostat + Contact From 7

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
Good job! No executable or dangerous file extensions detected340 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43689306
XML111334

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions330.00%
▷ Anonymous functions770.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin