77% vipdrv-vip-test-drive

Code Review | vipdrv

WordPress plugin vipdrv scored77%from 54 tests.

About plugin

  • Plugin page: vipdrv-vip-test-d...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.2
  • WordPress version: 6.3.1
  • First release: Feb 1, 2018
  • Latest release: Feb 14, 2018
  • Number of updates: 9
  • Update frequency: every 2.1 days
  • Top authors: ultramarine256 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /590 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
Installer ran successfully

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

Server-side resources used by vipdrv
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.72 ▲1.61
Dashboard /wp-admin3.32 ▲0.0144.86 ▼3.34
Posts /wp-admin/edit.php3.37 ▲0.0144.17 ▼3.89
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.32 ▼17.31
Media Library /wp-admin/upload.php3.24 ▲0.0133.16 ▼3.13
VIPdrv /wp-admin/admin.php?page=vipdrv-vip-test-drive/admin/portal.php3.2028.70
Settings /wp-admin/admin.php?page=vipdrv-vip-test-drive/admin/integration.php3.2130.96

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

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

Browser metrics Passed 4 tests

A check of browser resources used by vipdrv
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲13113.32 ▼1.032.27 ▲0.5841.33 ▲2.49
Dashboard /wp-admin2,231 ▲405.84 ▲0.81101.77 ▲0.0168.22 ▲26.50
Posts /wp-admin/edit.php2,108 ▲192.02 ▲0.0333.43 ▼2.6231.83 ▼4.13
Add New Post /wp-admin/post-new.php1,542 ▼023.09 ▲4.79722.65 ▲119.5054.98 ▲4.83
Media Library /wp-admin/upload.php1,413 ▲284.21 ▲0.0193.66 ▼5.4982.85 ▲39.54
VIPdrv /wp-admin/admin.php?page=vipdrv-vip-test-drive/admin/portal.php8122.0224.6124.84
Settings /wp-admin/admin.php?page=vipdrv-vip-test-drive/admin/integration.php8422.2027.0225.78

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/vipdrv-vip-test-drive/admin/portal.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vipdrv-vip-test-drive/vipdrv.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/vipdrv-vip-test-drive/admin/integration.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed: The official readme.txt is a good inspiration

vipdrv-vip-test-drive/vipdrv.php 69% from 13 tests

The primary PHP file in "vipdrv" version 1.0.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("vipdrv-vip-test-drive.php" instead of "vipdrv.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 211 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin91 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4112391

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/viprdv-menu-logo.png5.16KB0.60KB▼ 88.30%