83% vaultpress

Code Review | Jetpack VaultPress

WordPress plugin Jetpack VaultPress scored83%from 54 tests.

About plugin

  • Plugin page: vaultpress
  • Plugin version: 2.2.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: Jun 25, 2013
  • Latest release: Jul 6, 2023
  • Number of updates: 304
  • Update frequency: every 12.1 days
  • Top authors: thingalon (30.26%)briancolinger (22.04%)xknown (10.2%)benedictsinger (8.22%)Viper007Bond (5.59%)

Code review

54 tests

User reviews

73 reviews

Install metrics

30,000+ active /1,774,242 total downloads


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.81MB] [CPU: ▲2.34ms] Passed 4 tests

A check of server-side resources used by Jetpack VaultPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.27 ▲0.8147.61 ▲6.93
Dashboard /wp-admin4.11 ▲0.8154.71 ▲1.03
Posts /wp-admin/edit.php4.16 ▲0.8153.23 ▲1.33
Add New Post /wp-admin/post-new.php6.69 ▲0.8194.79 ▲0.08
Media Library /wp-admin/upload.php4.04 ▲0.8148.54 ▲13.74

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Jetpack VaultPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.58 ▼1.022.05 ▲0.0841.88 ▼0.51
Dashboard /wp-admin2,246 ▲554.85 ▼0.06110.85 ▲9.1142.82 ▼6.49
Posts /wp-admin/edit.php2,104 ▲152.06 ▲0.0037.40 ▼2.1433.87 ▲2.33
Add New Post /wp-admin/post-new.php1,543 ▲2423.15 ▼0.12671.17 ▼48.5858.79 ▼1.02
Media Library /wp-admin/upload.php1,406 ▲184.21 ▼0.0598.41 ▼6.0644.15 ▼1.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Automattic\\Jetpack\\Autoloader\\jp9559eef123208b7d1b9c15b978567267_vaultpress\xe2\x93\xa52_2_4\\wp_normalize_path() in wp-content/plugins/vaultpress/vendor/jetpack-autoloader/class-path-processor.php:73
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI' not found in wp-content/plugins/vaultpress/class.vaultpress-cli.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

vaultpress/vaultpress.php 85% from 13 tests

The entry point to "Jetpack VaultPress" version 2.2.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 492 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin6,907 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
Please tend to the following items
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 164)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity38.97
▷ Minimum class complexity1.00
▷ Maximum class complexity541.00
Average method complexity5.01
▷ Minimum method complexity1.00
▷ Maximum method complexity164.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes29100.00%
▷ Final classes00.00%
▷ Static methods3311.91%
▷ Public methods26194.22%
▷ Protected methods20.72%
▷ Private methods145.05%
▷ Named functions975.00%
▷ Anonymous functions325.00%
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/dashboard-icon-sprite-2x.png38.63KB14.13KB▼ 63.41%
images/vp-icon-sprite-2x.png7.87KB3.25KB▼ 58.70%
images/dashboard-icon-sprite.png18.84KB6.51KB▼ 65.43%