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.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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.27 ▲0.81 | 47.61 ▲6.93 |
Dashboard /wp-admin | 4.11 ▲0.81 | 54.71 ▲1.03 |
Posts /wp-admin/edit.php | 4.16 ▲0.81 | 53.23 ▲1.33 |
Add New Post /wp-admin/post-new.php | 6.69 ▲0.81 | 94.79 ▲0.08 |
Media Library /wp-admin/upload.php | 4.04 ▲0.81 | 48.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 |
---|
theysaidso_admin_options |
vaultpress |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Jetpack VaultPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.58 ▼1.02 | 2.05 ▲0.08 | 41.88 ▼0.51 |
Dashboard /wp-admin | 2,246 ▲55 | 4.85 ▼0.06 | 110.85 ▲9.11 | 42.82 ▼6.49 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.06 ▲0.00 | 37.40 ▼2.14 | 33.87 ▲2.33 |
Add New Post /wp-admin/post-new.php | 1,543 ▲24 | 23.15 ▼0.12 | 671.17 ▼48.58 | 58.79 ▼1.02 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.21 ▼0.05 | 98.41 ▼6.06 | 44.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
- > PHP Fatal error
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
Optimizations
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 1,049 | 1,637 | 5,282 |
CSS | 2 | 191 | 39 | 1,004 |
Markdown | 5 | 210 | 0 | 400 |
JSON | 3 | 0 | 0 | 200 |
SVG | 4 | 0 | 0 | 21 |
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 code | 0.53 |
Average class complexity | 38.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 541.00 |
Average method complexity | 5.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 164.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 277 | |
▷ Static methods | 33 | 11.91% |
▷ Public methods | 261 | 94.22% |
▷ Protected methods | 2 | 0.72% |
▷ Private methods | 14 | 5.05% |
Functions | 12 | |
▷ Named functions | 9 | 75.00% |
▷ Anonymous functions | 3 | 25.00% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ Public constants | 3 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/dashboard-icon-sprite-2x.png | 38.63KB | 14.13KB | ▼ 63.41% |
images/vp-icon-sprite-2x.png | 7.87KB | 3.25KB | ▼ 58.70% |
images/vp-toolbar-icon-trans-2x.png | 1.42KB | 1.80KB | 0.00% |
images/dashboard-icon-sprite.png | 18.84KB | 6.51KB | ▼ 65.43% |
images/logo_plugin-notice.png | 0.92KB | 1.00KB | 0.00% |