89% enable-virtual-card-upload-vcardvcf

Code Review | Enable virtual card upload - vcf,vcard

WordPress plugin Enable virtual card upload - vcf,vcard scored89%from 54 tests.

About plugin

  • Plugin page: enable-virtual-ca...
  • Plugin version: 2.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2023
  • Latest release: Sep 19, 2023
  • Number of updates: 14
  • Update frequency: every 15.2 days
  • Top authors: amitcodelord (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /3,119 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
Installer ran successfully

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

This is a short check of server-side resources used by Enable virtual card upload - vcf,vcard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.95 ▲1.94
Dashboard /wp-admin3.31 ▲0.0147.80 ▼6.21
Posts /wp-admin/edit.php3.37 ▲0.0049.16 ▼7.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.73 ▼13.75
Media Library /wp-admin/upload.php3.24 ▲0.0133.64 ▼2.89

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Enable virtual card upload - vcf,vcard
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.36 ▼0.211.88 ▼0.2243.78 ▼0.92
Dashboard /wp-admin2,198 ▲185.63 ▼0.0491.49 ▼4.7036.11 ▼4.44
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0333.73 ▼6.2634.91 ▼3.36
Add New Post /wp-admin/post-new.php1,526 ▼223.13 ▲0.22644.08 ▼42.3255.92 ▲0.16
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.01103.24 ▼4.9945.65 ▼2.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: vcf, wordpress, upload, vcard, plugin

enable-virtual-card-upload-vcardvcf/prdb-enable-virtual-card-upload.php 85% from 13 tests

The principal PHP file in "Enable virtual card upload - vcf,vcard" v. 2.2.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("enable-virtual-card-upload-vcardvcf.php" instead of "prdb-enable-virtual-card-upload.php")

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 plugin19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1132619

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Methods4
▷ Static methods250.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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