84% awesplash

Code Review | AweSplash - Just Splash Page

WordPress plugin AweSplash - Just Splash Page scored 84% from 54 tests.

About plugin

  • Plugin page: awesplash
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9
  • WordPress version: 6.3.1
  • First release: Jul 4, 2017
  • Latest release: Mar 2, 2018
  • Number of updates: 11
  • Update frequency: every 22.1 days
  • Top authors: awethemes (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

800+ active / 17,371 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.47ms] Passed 4 tests

Analyzing server-side resources used by AweSplash - Just Splash Page
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0348.32 ▲7.31
Dashboard /wp-admin3.33 ▲0.0243.90 ▼7.84
Posts /wp-admin/edit.php3.44 ▲0.0847.98 ▲1.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.73 ▲0.22
Media Library /wp-admin/upload.php3.25 ▲0.0235.96 ▲4.23

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 92 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for AweSplash - Just Splash Page
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.66 ▼0.706.00 ▲4.1450.99 ▼0.60
Dashboard /wp-admin2,206 ▲185.02 ▼0.86111.99 ▼6.8843.33 ▼4.00
Posts /wp-admin/edit.php2,089 ▲32.05 ▲0.0140.00 ▲1.9136.47 ▲4.98
Add New Post /wp-admin/post-new.php1,533 ▲1923.13 ▲5.63668.20 ▲8.3348.94 ▼19.21
Media Library /wp-admin/upload.php1,391 ▼04.43 ▲0.2494.77 ▼4.2041.86 ▼1.26

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 14× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/awesplash/includes/ctoolkit/inc/field/Gallery.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ctoolkit\\add_action() in wp-content/plugins/awesplash/includes/ctoolkit/inc/helpers.php:185
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/awesplash/templates/splash-page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ctoolkit\\add_filter() in wp-content/plugins/awesplash/includes/ctoolkit/inc/fontawesome.php:774
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/awesplash/includes/ctoolkit/inc/field/Multitext.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ctoolkit\\plugin_dir_path() in wp-content/plugins/awesplash/includes/ctoolkit/ctoolkit.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function absint() in wp-content/plugins/awesplash/awesplash.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/awesplash/includes/ctoolkit/inc/field/Autocomplete.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/awesplash/includes/ctoolkit/inc/field/Heading.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/awesplash/includes/ctoolkit/inc/field/Link.php:20

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: splash page, background video, splash screen

awesplash/awesplash.php Passed 13 tests

The entry point to "AweSplash - Just Splash Page" version 1.0.3 is a PHP file that has certain tags in its header comment area
38 characters long description:
A splash page for your WordPress site.

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
Success! There were no dangerous files found in this plugin19,961 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
CSS174712066,864
JavaScript191,1961,4916,575
PHP227078963,134
SVG2002,690
Sass5630698

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity15.53
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes213.33%
Methods77
▷ Static methods1418.18%
▷ Public methods6483.12%
▷ Protected methods00.00%
▷ Private methods1316.88%
Functions38
▷ Named functions38100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/ctoolkit/assets/images/move.png0.68KB0.60KB▼ 11.71%
includes/ctoolkit/assets/images/add-large.png0.11KB0.11KB0.00%
includes/ctoolkit/assets/images/add.png0.13KB0.11KB▼ 17.91%
includes/ctoolkit/assets/images/select2.png0.60KB0.99KB0.00%
includes/ctoolkit/assets/images/select2x2.png0.83KB0.77KB▼ 6.15%