94% the-preloader

Code Review | Preloader

WordPress plugin Preloader scored 94% from 54 tests.

About plugin

  • Plugin page: the-preloader
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-5.9
  • WordPress version: 5.9.2
  • First release: Jul 5, 2015
  • Latest release: Jan 26, 2022
  • Number of updates: 66
  • Update frequency: every 36.4 days
  • Top authors: Alobaidi (100%)

Code review

54 tests

User reviews

39 reviews

Install metrics

20,000+ active / 187,806 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Preloader
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.0955.90 ▲7.84
Dashboard /wp-admin3.47 ▲0.0639.14 ▲6.30
Posts /wp-admin/edit.php3.70 ▲0.0638.91 ▼2.15
Add New Post /wp-admin/post-new.php6.94 ▼0.0493.18 ▼1,180.22
Media Library /wp-admin/upload.php3.35 ▲0.0625.07 ▼1.07
Preloader /wp-admin/plugins.php?page=WPTime_preloader_settings3.3224.43

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Preloader
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,882 ▲12816.49 ▲0.808.73 ▲2.932.26 ▼1.00
Dashboard /wp-admin2,893 ▲326.11 ▼0.07114.58 ▼19.09156.50 ▲0.79
Posts /wp-admin/edit.php2,693 ▲53.24 ▼0.0063.69 ▼2.69139.10 ▼8.86
Add New Post /wp-admin/post-new.php1,722 ▼3021.48 ▲0.15437.16 ▼22.37156.99 ▼1.18
Media Library /wp-admin/upload.php1,703 ▲55.46 ▼0.08143.75 ▲1.17189.34 ▲7.18
Preloader /wp-admin/plugins.php?page=WPTime_preloader_settings1,3392.4655.40167.74

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/the-preloader/uninstall.php
    • > /wp-content/plugins/the-preloader/preloader.php
    • > /wp-content/plugins/the-preloader/settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: preloader, loader, load, preload, loading

the-preloader/preloader.php 92% from 13 tests

The main PHP file in "Preloader" ver. 1.0.9 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("the-preloader.php" instead of "preloader.php")

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
Everything looks great! No dangerous files found in this plugin314 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.64
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
banner/bh.png13.73KB4.93KB▼ 64.11%