83% export-your-user-accounts-to-vcard-format

Code Review | Exporter vos comptes en fiche contact vCard

WordPress plugin Exporter vos comptes en fiche contact vCard scored83%from 54 tests.

About plugin

  • Plugin page: export-your-user-...
  • Plugin version: 1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Apr 30, 2023
  • Latest release: May 4, 2023
  • Number of updates: 9
  • Update frequency: every 0.7 days
  • Top authors: valentinbotte (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /111 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼11.00ms] Passed 4 tests

An overview of server-side resources used by Exporter vos comptes en fiche contact vCard
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.84 ▼9.07
Dashboard /wp-admin3.41 ▲0.1050.96 ▲1.86
Posts /wp-admin/edit.php3.52 ▲0.1650.24 ▼5.61
Add New Post /wp-admin/post-new.php6.01 ▲0.1286.13 ▼31.16
Media Library /wp-admin/upload.php3.33 ▲0.1037.34 ▲2.01

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Exporter vos comptes en fiche contact vCard
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6414.84 ▲0.551.82 ▲0.1038.91 ▼1.36
Dashboard /wp-admin2,219 ▲284.95 ▲0.02104.05 ▲1.2136.34 ▼6.77
Posts /wp-admin/edit.php2,099 ▲102.06 ▲0.0338.03 ▼6.0031.48 ▼9.16
Add New Post /wp-admin/post-new.php1,523 ▼1223.45 ▲0.15604.94 ▼72.6556.30 ▲1.12
Media Library /wp-admin/upload.php1,401 ▲134.21 ▼0.0196.55 ▼9.5443.47 ▼0.04
Exporter les comptes (vCard) /wp-admin/tools.php?page=Exporter les comptes1,1131.9833.5648.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
  • 73× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'JeroenDesloovere\\VCard\\Property\\Value\\ImageValue' not found in wp-content/plugins/export-your-user-accounts-to-vcard-format/vendor/jeroendesloovere/vcard/src/Property/Logo.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'JeroenDesloovere\\VCard\\Property\odeInterface' not found in wp-content/plugins/export-your-user-accounts-to-vcard-format/vendor/jeroendesloovere/vcard/src/Property/SimpleNodeInterface.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'JeroenDesloovere\\VCard\\Formatter\\Property\odeFormatter' not found in wp-content/plugins/export-your-user-accounts-to-vcard-format/vendor/jeroendesloovere/vcard/src/Formatter/Property/SimpleNodeFormatter.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'JeroenDesloovere\\VCard\\Property\\Parameter\\PropertyParameterInterface' not found in wp-content/plugins/export-your-user-accounts-to-vcard-format/vendor/jeroendesloovere/vcard/src/Property/Parameter/Value.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'JeroenDesloovere\\VCard\\Property\\PropertyInterface' not found in wp-content/plugins/export-your-user-accounts-to-vcard-format/vendor/jeroendesloovere/vcard/src/Property/Email.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'JeroenDesloovere\\VCard\\Property\\Value\\StringValue' not found in wp-content/plugins/export-your-user-accounts-to-vcard-format/vendor/jeroendesloovere/vcard/src/Property/Nickname.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'JeroenDesloovere\\VCard\\Property\\Value\\StringValue' not found in wp-content/plugins/export-your-user-accounts-to-vcard-format/vendor/jeroendesloovere/vcard/src/Property/Note.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'JeroenDesloovere\\VCard\\Parser\\Property\\PropertyParser' not found in wp-content/plugins/export-your-user-accounts-to-vcard-format/vendor/jeroendesloovere/vcard/src/Parser/Property/GenderParser.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'JeroenDesloovere\\VCard\\Formatter\\Property\odeFormatter' not found in wp-content/plugins/export-your-user-accounts-to-vcard-format/vendor/jeroendesloovere/vcard/src/Formatter/Property/NameFormatter.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'JeroenDesloovere\\VCard\\Exception\\VCardException' not found in wp-content/plugins/export-your-user-accounts-to-vcard-format/vendor/jeroendesloovere/vcard/src/Exception/PropertyException.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: contact, vcard, users, export

export-your-user-accounts-to-vcard-format/vb_vcard.php 69% from 13 tests

The entry point to "Exporter vos comptes en fiche contact vCard" 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: Name the main plugin file the same as the plugin slug ("export-your-user-accounts-to-vcard-format.php" instead of "vb_vcard.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)

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 detected3,995 lines of code in 112 files:
LanguageFilesBlank linesComment linesLines of code
PHP1029827753,504
Markdown2550174
CSS23112159
JSON20090
SVG11031
YAML17018
XML10016
JavaScript1003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity3.30
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces16
Interfaces8
Traits0
Classes88
▷ Abstract classes00.00%
▷ Concrete classes88100.00%
▷ Final classes7484.09%
Methods376
▷ Static methods9725.80%
▷ Public methods34290.96%
▷ Protected methods41.06%
▷ Private methods307.98%
Functions8
▷ Named functions112.50%
▷ Anonymous functions787.50%
Constants41
▷ Global constants00.00%
▷ Class constants41100.00%
▷ Public constants1024.39%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin