84% vast-package

Code Review | Vast Package

WordPress plugin Vast Package scored84%from 54 tests.

About plugin

  • Plugin page: vast-package
  • Plugin version: 1.1.2.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Dec 10, 2018
  • Latest release: Aug 5, 2019
  • Number of updates: 13
  • Update frequency: every 18.5 days
  • Top authors: detheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /3,913 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.52ms] Passed 4 tests

A check of server-side resources used by Vast Package
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.08 ▼6.82
Dashboard /wp-admin3.33 ▲0.0353.34 ▲2.01
Posts /wp-admin/edit.php3.38 ▲0.0352.09 ▲4.44
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.96 ▼8.34
Media Library /wp-admin/upload.php3.26 ▲0.0334.68 ▲3.07

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Vast Package
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.28 ▼0.071.76 ▼0.1644.33 ▲1.06
Dashboard /wp-admin2,209 ▲285.57 ▼0.1192.01 ▼27.3637.81 ▼8.77
Posts /wp-admin/edit.php2,114 ▲171.97 ▼0.0138.44 ▲5.1433.04 ▼2.84
Add New Post /wp-admin/post-new.php1,540 ▲923.04 ▼0.09686.19 ▲21.6663.07 ▼0.55
Media Library /wp-admin/upload.php1,414 ▲144.18 ▼0.0097.95 ▼0.7140.54 ▼2.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/vast-package/vast-package.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: addon, vast, theme

vast-package/vast-package.php 92% from 13 tests

The main PHP script in "Vast Package" version 1.1.2.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "4.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected245 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14645142
CSS112185
JavaScript11018

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/vast_logo.png3.86KB3.98KB0.00%