90% enable-vcard-upload

Code Review | Enable vCard Upload

WordPress plugin Enable vCard Upload scored 90% from 54 tests.

About plugin

  • Plugin page: enable-vcard-upload
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.0.3
  • WordPress version: 6.3.1
  • First release: Oct 18, 2016
  • Latest release: Jan 30, 2019
  • Number of updates: 3
  • Update frequency: every 277.0 days
  • Top authors: 56degrees (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

4,000+ active / 20,485 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by Enable vCard Upload
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.46 ▼10.43
Dashboard /wp-admin3.31 ▲0.0145.37 ▼2.39
Posts /wp-admin/edit.php3.36 ▲0.0147.53 ▲2.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.39 ▼14.50
Media Library /wp-admin/upload.php3.23 ▲0.0137.98 ▲6.03

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Enable vCard Upload
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.57 ▼0.801.54 ▼0.2637.42 ▼11.08
Dashboard /wp-admin2,206 ▲155.88 ▲1.00110.59 ▼7.2943.31 ▲0.73
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0640.01 ▼4.6135.30 ▼1.36
Add New Post /wp-admin/post-new.php1,533 ▼1123.43 ▲5.38692.28 ▲61.9765.23 ▲16.92
Media Library /wp-admin/upload.php1,388 ▲64.24 ▲0.0298.37 ▼0.7441.85 ▲0.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: vcard, wordpress, upload, vcf, plugin

enable-vcard-upload/enable-vcard-upload.php Passed 13 tests

The main PHP file in "Enable vCard Upload" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
36 characters long description:
Enables upload of vCard (vcf) files.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin42 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File15724
PHP1183918

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin