62% vstemplate-creator

Code Review | VSTEMPLATE Creator

WordPress plugin VSTEMPLATE Creator scored62%from 54 tests.

About plugin

  • Plugin page: vstemplate-creator
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.6.1
  • WordPress version: 6.3.1
  • First release: Jul 24, 2013
  • Latest release: Sep 17, 2016
  • Number of updates: 42
  • Update frequency: every 27.4 days
  • Top authors: vikashsrivastava1111989 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /7,503 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.96MB] [CPU: ▼57.88ms] Passed 4 tests

This is a short check of server-side resources used by VSTEMPLATE Creator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.32 ▼39.07
Dashboard /wp-admin2.05 ▼1.265.92 ▼54.60
Posts /wp-admin/edit.php2.05 ▼1.315.59 ▼41.93
Add New Post /wp-admin/post-new.php2.05 ▼3.848.76 ▼95.90
Media Library /wp-admin/upload.php2.05 ▼1.185.22 ▼27.84
VSTEMPLATE /wp-admin/admin.php?page=vstemplate-creator/VSTEMPLATE-creator.php2.055.71
View Templates /wp-admin/admin.php?page=list-site2.055.61

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

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

Browser metrics Passed 4 tests

VSTEMPLATE Creator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲17313.67 ▼0.885.76 ▲3.8343.06 ▲4.31
Dashboard /wp-admin2,243 ▲525.86 ▼0.04100.57 ▼5.7480.03 ▲40.43
Posts /wp-admin/edit.php2,123 ▲312.01 ▼0.1734.80 ▼6.2734.52 ▼1.63
Add New Post /wp-admin/post-new.php1,696 ▲18222.42 ▲4.95744.30 ▲66.8453.30 ▼1.73
Media Library /wp-admin/upload.php1,422 ▲314.24 ▼0.06116.33 ▲7.9644.77 ▼1.82
VSTEMPLATE /wp-admin/admin.php?page=vstemplate-creator/VSTEMPLATE-creator.php8602.0224.1027.09
View Templates /wp-admin/admin.php?page=list-site8362.0325.0129.91

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=list-site
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=list-site
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wpvs-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=list-site
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wpvs-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 14 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=list-site
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/vstemplate-creator/require_once.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/vstemplate-creator/VSTEMPLATE-creator.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=list-site
    • > Network (severe)
    wp-content/plugins/vstemplate-creator/images/logo_yet_to_come.gif - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Add a description for screenshot #0 in vstemplate-creator/assets to your readme.txt
  • Donate link: Invalid URI found ("")
  • Screenshots: Screenshot #1 (The VSTEMPLATE-creator page) image required
The official readme.txt is a good inspiration

vstemplate-creator/VSTEMPLATE-creator.php 92% from 13 tests

"VSTEMPLATE Creator" version 2.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("vstemplate-creator.php" instead of "VSTEMPLATE-creator.php")

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
There were no executable files found in this plugin751 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP31236472
CSS1322267
JavaScript11112

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.27
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin