79% preloader-bundle

Code Review | Preloader Bundle

WordPress plugin Preloader Bundle scored79%from 54 tests.

About plugin

  • Plugin page: preloader-bundle
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Aug 5, 2022
  • Latest release: Aug 27, 2023
  • Number of updates: 4
  • Update frequency: every 96.8 days
  • Top authors: sajjad67 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /875 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
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼9.63ms] Passed 4 tests

This is a short check of server-side resources used by Preloader Bundle
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1139.32 ▼0.25
Dashboard /wp-admin3.55 ▲0.2149.20 ▼12.17
Posts /wp-admin/edit.php3.60 ▲0.2555.09 ▲2.80
Add New Post /wp-admin/post-new.php6.05 ▲0.1682.40 ▼28.27
Media Library /wp-admin/upload.php3.39 ▲0.1636.59 ▲2.19

Server storage [IO: ▲2.41MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 155 new files
Database: no new tables, 7 new options
New WordPress options
preloader_bundle_basic_settings
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Preloader Bundle
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲18715.11 ▲0.721.62 ▼0.3642.01 ▲0.49
Dashboard /wp-admin2,367 ▲1796.63 ▲0.73123.68 ▲20.1541.03 ▼2.87
Posts /wp-admin/edit.php2,267 ▲1783.53 ▲1.5050.79 ▲6.1733.86 ▼5.00
Add New Post /wp-admin/post-new.php1,529 ▲1023.27 ▲0.12648.00 ▲14.5937.47 ▼13.11
Media Library /wp-admin/upload.php1,406 ▲184.28 ▲0.0282.79 ▼16.3443.21 ▼0.31
Preloader Bundle /wp-admin/preloader-bundle.php260.440.0814.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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: 7 options
    • can_compress_scripts
    • preloader_bundle_basic_settings
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/preloader-bundle/includes/admin_settings.php
    • > /wp-content/plugins/preloader-bundle/includes/public.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/preloader-bundle.php
    • > Network (severe)
    wp-admin/preloader-bundle.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 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
6 plugin tags: preloader-gifs, gifs, gifs-preloader, preloader, preloader-bundle...

preloader-bundle/preloader-bundle.php Passed 13 tests

The main PHP script in "Preloader Bundle" version 1.0.1 is automatically included on every request by WordPress
78 characters long description:
Add Preloader To Your Site With Just One Click! 150+ Preloader To Select From.

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
Good job! No executable or dangerous file extensions detected701 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4239284643
CSS14337
JavaScript14021

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity30.33
▷ Minimum class complexity5.00
▷ Maximum class complexity69.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods39
▷ Static methods410.26%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin