83% kento-splash-screen

Code Review | Kento Splash Screen

WordPress plugin Kento Splash Screen scored83%from 54 tests.

About plugin

  • Plugin page: kento-splash-screen
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.6.1
  • WordPress version: 6.3.1
  • First release: Jan 6, 2014
  • Latest release: Nov 24, 2016
  • Number of updates: 33
  • Update frequency: every 31.9 days
  • Top authors: kentothemes (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /14,630 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.03MB] [CPU: ▼2.92ms] Passed 4 tests

This is a short check of server-side resources used by Kento Splash Screen
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.62 ▼2.50
Dashboard /wp-admin3.33 ▲0.0347.59 ▼0.69
Posts /wp-admin/edit.php3.38 ▲0.0347.14 ▼1.18
Add New Post /wp-admin/post-new.php5.91 ▲0.0394.61 ▼7.29
Media Library /wp-admin/upload.php3.26 ▲0.0335.15 ▲3.05

Server storage [IO: ▲0.84MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for Kento Splash Screen
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲18014.17 ▼0.235.91 ▲4.3143.57 ▲0.30
Dashboard /wp-admin2,237 ▲485.14 ▲0.23114.93 ▲0.7042.83 ▼1.12
Posts /wp-admin/edit.php2,125 ▲392.42 ▲0.4340.55 ▲4.1434.22 ▼1.49
Add New Post /wp-admin/post-new.php1,546 ▲1718.08 ▼0.33601.30 ▼33.3335.27 ▼17.41
Media Library /wp-admin/upload.php1,419 ▲344.45 ▲0.2695.97 ▼4.8541.01 ▼3.09

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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 items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kento-splash-screen/kento-splash-screen-admin.php:5
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/kento-splash-screen/index.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/kento-splash-screen/index.php:14

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

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #3 (Yotube Video on popup.)
The official readme.txt is a good inspiration

kento-splash-screen/index.php 92% from 13 tests

This is the main PHP file of "Kento Splash Screen" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("kento-splash-screen.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin363 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP212410252
CSS255103
JavaScript1008

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.83MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png282.31KB65.05KB▼ 76.96%
screenshot-3.png166.77KB66.03KB▼ 60.41%
screenshot-2.png141.23KB42.29KB▼ 70.05%
screenshot-1.png152.29KB78.13KB▼ 48.70%
css/screen.png101.80KB48.35KB▼ 52.51%