89% vauchar

Code Review | Vauchar

WordPress plugin Vauchar scored89%from 54 tests.

About plugin

  • Plugin page: vauchar
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Nov 24, 2016
  • Latest release: Nov 25, 2016
  • Number of updates: 7
  • Update frequency: every 1.1 days
  • Top authors: vauchar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /448 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼3.98ms] Passed 4 tests

This is a short check of server-side resources used by Vauchar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1245.46 ▼3.81
Dashboard /wp-admin3.42 ▲0.1255.37 ▼0.96
Posts /wp-admin/edit.php3.53 ▲0.1851.30 ▲0.26
Add New Post /wp-admin/post-new.php6.00 ▲0.1182.11 ▼11.42
Media Library /wp-admin/upload.php3.34 ▲0.1142.00 ▲3.16

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Vauchar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.25 ▼0.522.31 ▲0.6047.57 ▲2.13
Dashboard /wp-admin2,208 ▲285.60 ▼0.0688.42 ▼9.5241.80 ▲0.64
Posts /wp-admin/edit.php2,113 ▲101.99 ▲0.0135.21 ▲0.1334.98 ▼2.45
Add New Post /wp-admin/post-new.php1,539 ▲1323.35 ▲0.32655.10 ▼76.5052.52 ▼5.76
Media Library /wp-admin/upload.php1,410 ▲164.18 ▼0.0395.19 ▼3.7245.83 ▼1.90

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === vauchar === )
You can look at the official readme.txt

vauchar/vauchar_woocommerce.php 92% from 13 tests

The entry point to "Vauchar" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("vauchar.php" instead of "vauchar_woocommerce.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
Everything looks great! No dangerous files found in this plugin635 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4155364635

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity16.20
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity2.13
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods67
▷ Static methods00.00%
▷ Public methods5886.57%
▷ Protected methods913.43%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin