84% wp-simple-site-preloader

Code Review | WP Simple Site Preloader

WordPress plugin WP Simple Site Preloader scored84%from 54 tests.

About plugin

  • Plugin page: wp-simple-site-pr...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Oct 22, 2020
  • Latest release: Jan 3, 2023
  • Number of updates: 7
  • Update frequency: every 114.7 days
  • Top authors: GouravRR (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /387 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by WP Simple Site Preloader
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.61 ▲1.50
Dashboard /wp-admin3.34 ▲0.0346.81 ▼1.50
Posts /wp-admin/edit.php3.39 ▲0.0348.79 ▲1.18
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.38 ▲0.76
Media Library /wp-admin/upload.php3.26 ▲0.0335.44 ▲2.13

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Simple Site Preloader
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲17013.83 ▼0.714.85 ▲3.2240.06 ▼3.02
Dashboard /wp-admin2,244 ▲625.16 ▼0.6699.95 ▼3.4338.35 ▼3.52
Posts /wp-admin/edit.php2,126 ▲372.52 ▲0.4942.73 ▲6.7934.52 ▲3.76
Add New Post /wp-admin/post-new.php1,551 ▲1823.50 ▲0.40614.27 ▲2.2834.19 ▼19.91
Media Library /wp-admin/upload.php1,423 ▲354.56 ▲0.3698.12 ▼2.9540.64 ▼6.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-simple-site-preloader/wpssl-options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-simple-site-preloader/wpssl-options.php:3

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: loader, website loader, preload, spinner loader, preloader...

wp-simple-site-preloader/wp-simple-site-preloader.php Passed 13 tests

The entry point to "WP Simple Site Preloader" version 2.0.0 is a PHP file that has certain tags in its header comment area
107 characters long description:
This plugin will add Customizable, simple, non-image and compatible to all browsers pre-loader to your site

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
Good job! No executable or dangerous file extensions detected110 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22126108
CSS1001
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin