90% very-simple-website-closed

Code Review | VS Website Closed

WordPress plugin VS Website Closed scored90%from 54 tests.

About plugin

  • Plugin page: very-simple-websi...
  • Plugin version: 2.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4
  • WordPress version: 6.3.1
  • First release: May 7, 2017
  • Latest release: Nov 25, 2023
  • Number of updates: 62
  • Update frequency: every 38.6 days
  • Top authors: Guido07111975 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,759 total downloads

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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼8.18ms] Passed 4 tests

Analyzing server-side resources used by VS Website Closed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1140.01 ▼0.86
Dashboard /wp-admin3.45 ▲0.1047.13 ▼12.54
Posts /wp-admin/edit.php3.56 ▲0.2047.16 ▼3.32
Add New Post /wp-admin/post-new.php6.05 ▲0.1683.56 ▼15.98
Media Library /wp-admin/upload.php3.37 ▲0.1434.73 ▲1.70
Website closed /wp-admin/options-general.php?page=vswc3.3434.25

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for VS Website Closed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲5114.42 ▲0.141.65 ▼0.0348.04 ▲4.91
Dashboard /wp-admin2,218 ▲415.84 ▲0.2199.80 ▲4.0642.55 ▼2.75
Posts /wp-admin/edit.php2,128 ▲282.45 ▲0.4342.12 ▲1.1537.02 ▲1.19
Add New Post /wp-admin/post-new.php1,543 ▲1723.30 ▲0.12586.26 ▼10.2033.48 ▼18.27
Media Library /wp-admin/upload.php1,423 ▲294.41 ▲0.2496.67 ▼1.8541.30 ▼0.21
Website closed /wp-admin/options-general.php?page=vswc9631.9428.4829.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: close, under construction, closed, simple, maintenance

very-simple-website-closed/vswc.php 92% from 13 tests

The primary PHP file in "VS Website Closed" version 2.8 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("very-simple-website-closed.php" instead of "vswc.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin430 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP56047413
CSS47914
JavaScript1113

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected