84% best-preloader

Code Review | Best Preloader

WordPress plugin Best Preloader scored 84% from 54 tests.

About plugin

  • Plugin page: best-preloader
  • Plugin version: 4.45
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 5.9.2
  • First release: Feb 24, 2016
  • Latest release: Jan 24, 2022
  • Number of updates: 92
  • Update frequency: every 23.5 days
  • Top authors: Arthur Gareginyan (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

600+ active / 32,534 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼285.59ms] Passed 4 tests

Analyzing server-side resources used by Best Preloader
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.1755.58 ▼0.17
Dashboard /wp-admin3.52 ▲0.1235.10 ▼0.87
Posts /wp-admin/edit.php3.75 ▲0.1141.90 ▲0.07
Add New Post /wp-admin/post-new.php6.98 ▲0.01102.64 ▼1,141.37
Media Library /wp-admin/upload.php3.40 ▲0.1025.26 ▲1.40
Preloader /wp-admin/options-general.php?page=best-preloader3.4927.47

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, 1 new option
New WordPress options
spacexchimp_p007_service_info

Browser metrics Passed 4 tests

A check of browser resources used by Best Preloader
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,953 ▲19916.24 ▲0.609.39 ▲2.522.28 ▼0.40
Dashboard /wp-admin2,897 ▲396.20 ▲0.02120.70 ▼12.90156.16 ▼78.50
Posts /wp-admin/edit.php2,696 ▲53.24 ▲0.0063.14 ▼1.18142.80 ▼3.60
Add New Post /wp-admin/post-new.php1,671 ▼8119.27 ▼1.58414.31 ▼60.13167.79 ▼10.65
Media Library /wp-admin/upload.php1,706 ▲55.52 ▼0.01137.97 ▼44.47189.38 ▼10.67
Preloader /wp-admin/options-general.php?page=best-preloader3,3943.6683.63141.50

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 option in the database
    • spacexchimp_p007_service_info

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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 fix the following items
  • 15× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/best-preloader/inc/php/tabs/faq.php
    • > /wp-content/plugins/best-preloader/inc/php/versioning.php
    • > /wp-content/plugins/best-preloader/best-preloader.php
    • > /wp-content/plugins/best-preloader/inc/php/tabs/support.php
    • > /wp-content/plugins/best-preloader/inc/php/functional.php
    • > /wp-content/plugins/best-preloader/inc/php/tabs/settings.php
    • > /wp-content/plugins/best-preloader/inc/php/controls.php
    • > /wp-content/plugins/best-preloader/inc/php/enqueue.php
    • > /wp-content/plugins/best-preloader/inc/php/tabs/usage.php
    • > /wp-content/plugins/best-preloader/inc/php/page.php

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 issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

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

The main PHP file in "Best Preloader" ver. 4.45 adds more information about the plugin and also serves as the entry point for this plugin
60 characters long description:
Easily and safely add a preloader to your WordPress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin6,191 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
SVG2102,677
PO File57487711,649
PHP162753671,197
CSS53180592
JavaScript4213976

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.03MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/img/spacexchimp-logo.png21.01KB14.98KB▼ 28.69%
inc/img/thanks.png9.03KB9.47KB0.00%