94% vinvin-force-email

Code Review | Vinvin Force Email

WordPress plugin Vinvin Force Email scored 94% from 54 tests.

About plugin

  • Plugin page: vinvin-force-email
  • Plugin version: 1.0.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.7
  • WordPress version: 5.8.1
  • First release: Mar 19, 2021
  • Latest release: Mar 19, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: vinvin27 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 101 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Vinvin Force Email
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1238.78 ▲11.39
Dashboard /wp-admin3.07 ▲0.0147.84 ▼0.02
Posts /wp-admin/edit.php3.13 ▲0.0147.84 ▼1.23
Add New Post /wp-admin/post-new.php5.43 ▼0.0193.28 ▼563.63
Media Library /wp-admin/upload.php3.02 ▲0.0131.78 ▼3.27

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Vinvin Force Email
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.80 ▼0.068.75 ▼2.1247.70 ▼1.56
Dashboard /wp-admin2,973 ▲425.90 ▼0.06144.05 ▼22.83118.92 ▼0.34
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0167.46 ▼3.5696.03 ▲4.85
Add New Post /wp-admin/post-new.php1,683 ▼016.78 ▼1.97396.92 ▼5.16106.13 ▼20.68
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.02167.19 ▲13.42121.99 ▼4.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 fix the following items
  • 1× 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/vinvin-force-email/vinvin-force-email.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were 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
2 plugin tags: development, email

vinvin-force-email/vinvin-force-email.php Passed 13 tests

The main file in "Vinvin Force Email" v. 1.0.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
45 characters long description:
Force all email to being to an specific email

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP112825

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin