83% very-simple-splash-page

Code Review | Very Simple Splash Page

WordPress plugin Very Simple Splash Page scored 83% from 53 tests.

About plugin

  • Plugin page: very-simple-splas...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.6
  • WordPress version: 5.8.1
  • First release: Oct 6, 2015
  • Latest release: Mar 21, 2021
  • Number of updates: 15
  • Update frequency: every 133.2 days
  • Top authors: DessignThemes (100%)

Code review

53 tests

User reviews

12 reviews

Install metrics

2,000+ active / 47,949 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by Very Simple Splash Page
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.10 ▲9.77
Dashboard /wp-admin3.09 ▲0.0449.31 ▼0.05
Posts /wp-admin/edit.php3.20 ▲0.1050.95 ▲6.74
Add New Post /wp-admin/post-new.php5.43 ▲0.0094.06 ▼1,007.17
Media Library /wp-admin/upload.php3.01 ▲0.0030.41 ▼9.39

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 2 new options
New WordPress options
vssp_settings
vssp_options

Browser metrics Passed 4 tests

A check of browser resources used by Very Simple Splash Page
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,878 ▲27217.59 ▲2.107.32 ▼1.2044.21 ▼2.88
Dashboard /wp-admin3,159 ▲3037.35 ▲1.55167.40 ▲30.4199.75 ▼5.46
Posts /wp-admin/edit.php2,964 ▲2584.08 ▲1.3982.94 ▲15.2386.75 ▼5.80
Add New Post /wp-admin/post-new.php1,623 ▼3021.65 ▲2.84243.57 ▼133.67104.73 ▼7.35
Media Library /wp-admin/upload.php1,808 ▲394.92 ▼0.09109.36 ▼38.53105.05 ▼5.54

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 2 options
    • vssp_settings
    • vssp_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/very-simple-splash-page/vssp-config.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_title() in wp-content/plugins/very-simple-splash-page/templates/default-template.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/very-simple-splash-page/vssp-config.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/very-simple-splash-page/includes/activation.php:83

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === very-simple-splash-page === )
The official readme.txt might help

very-simple-splash-page/init.php 85% from 13 tests

The entry point to "Very Simple Splash Page" version 1.0.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("very-simple-splash-page.php" instead of "init.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
No dangerous file extensions were detected689 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2188111379
PHP711223310

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity7.00
▷ Minimum class complexity5.00
▷ Maximum class complexity9.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin