89% preloader-for-website

Code Review | Preloader for Website

WordPress plugin Preloader for Website scored89%from 54 tests.

About plugin

  • Plugin page: preloader-for-web...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 18, 2017
  • Latest release: Nov 21, 2023
  • Number of updates: 25
  • Update frequency: every 99.8 days
  • Top authors: wponlinesupport (56%)anoopranawat (48%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /21,587 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.33ms] Passed 4 tests

Server-side resources used by Preloader for Website
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.46 ▼4.34
Dashboard /wp-admin3.38 ▲0.0850.66 ▲2.82
Posts /wp-admin/edit.php3.50 ▲0.1447.88 ▼2.07
Add New Post /wp-admin/post-new.php5.96 ▲0.0894.75 ▲2.16
Media Library /wp-admin/upload.php3.30 ▲0.0834.98 ▼1.08
Preloader - WPOS /wp-admin/admin.php?page=plwao-settings3.3438.30
How It Works /wp-admin/admin.php?page=plwao-how-it-work3.2834.52

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 8 new options
New WordPress options
plwao_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
plwao_plugin_version
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Preloader for Website
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,015 ▲25313.39 ▼0.9515.51 ▲13.8043.81 ▼0.24
Dashboard /wp-admin2,222 ▲455.58 ▼0.0489.98 ▼5.2840.95 ▼6.29
Posts /wp-admin/edit.php2,127 ▲272.14 ▲0.1235.84 ▼4.9331.79 ▼4.78
Add New Post /wp-admin/post-new.php1,556 ▲3025.32 ▲2.19603.50 ▼52.3866.85 ▲11.09
Media Library /wp-admin/upload.php1,424 ▲244.19 ▲0.0398.38 ▲0.1642.07 ▼0.43
Preloader - WPOS /wp-admin/admin.php?page=plwao-settings2,3027.13164.64112.76
How It Works /wp-admin/admin.php?page=plwao-how-it-work9962.1224.2326.42

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 8 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • plwao_plugin_version
    • plwao_options

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: There are too many tags (13 tag instead of maximum 10)
You can look at the official readme.txt

preloader-for-website/pageloader-website-add-on.php 92% from 13 tests

This is the main PHP file of "Preloader for Website" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("preloader-for-website.php" instead of "pageloader-website-add-on.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
There were no executable files found in this plugin777 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8190270695
JavaScript216659
CSS20223

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity7.33
▷ Minimum class complexity2.00
▷ Maximum class complexity10.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
PNG images were not found in this plugin