77% thamaraiselvam-wp-vulnerable-updates

Code Review | WP Vulnerable Updates

WordPress plugin WP Vulnerable Updates scored77%from 54 tests.

About plugin

  • Plugin page: thamaraiselvam-wp...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.9.5
  • WordPress version: 6.3.1
  • First release: Apr 21, 2018
  • Latest release: Apr 21, 2018
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: thamaraiselvam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /632 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.11MB] [CPU: ▼7.93ms] Passed 4 tests

A check of server-side resources used by WP Vulnerable Updates
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1243.11 ▲0.29
Dashboard /wp-admin3.41 ▲0.1143.76 ▼8.29
Posts /wp-admin/edit.php3.53 ▲0.1744.46 ▼4.36
Add New Post /wp-admin/post-new.php6.00 ▲0.1177.48 ▼19.36
Media Library /wp-admin/upload.php3.34 ▲0.1138.08 ▲1.72
WP Vulnerable Updates /wp-admin/options-general.php?page=wp-vulnerable-updates3.3130.02

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 10 new options
New WordPress options
wpvu-allow-email
wpvu-core-updates
can_compress_scripts
widget_theysaidso_widget
wpvu-plugin-updates
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
wpvu-theme-updates

Browser metrics Passed 4 tests

A check of browser resources used by WP Vulnerable Updates
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.27 ▼0.071.63 ▼0.3239.36 ▼4.20
Dashboard /wp-admin2,202 ▲285.64 ▼0.1193.28 ▼10.6444.32 ▲0.29
Posts /wp-admin/edit.php2,104 ▲12.00 ▲0.0541.30 ▼5.8736.98 ▼4.41
Add New Post /wp-admin/post-new.php1,529 ▼1923.71 ▲5.58628.18 ▲5.8659.33 ▼14.34
Media Library /wp-admin/upload.php1,407 ▲74.18 ▲0.0397.15 ▼5.7942.58 ▲0.40
WP Vulnerable Updates /wp-admin/options-general.php?page=wp-vulnerable-updates7972.0327.4327.82

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/thamaraiselvam-wp-vulnerable-updates/wp-vulnerable-updates.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WPVU_Vulns_Common' not found in wp-content/plugins/thamaraiselvam-wp-vulnerable-updates/views/settings-page.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

thamaraiselvam-wp-vulnerable-updates/wp-vulnerable-updates.php 77% from 13 tests

This is the main PHP file of "WP Vulnerable Updates" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 151 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("thamaraiselvam-wp-vulnerable-updates.php" instead of "wp-vulnerable-updates.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin697 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP727729697

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity27.60
▷ Minimum class complexity12.00
▷ Maximum class complexity45.00
Average method complexity3.42
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods55
▷ Static methods1018.18%
▷ Public methods4683.64%
▷ Protected methods00.00%
▷ Private methods916.36%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin