84% pageloader-lite

Code Review | PageLoader Lite - Loading Screen

WordPress plugin PageLoader Lite - Loading Screen scored84%from 54 tests.

About plugin

  • Plugin page: pageloader-lite
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.0.1
  • WordPress version: 6.3.1
  • First release: Mar 8, 2018
  • Latest release: Aug 5, 2022
  • Number of updates: 16
  • Update frequency: every 100.7 days
  • Top authors: BonfireThemes (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /12,077 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.62MB] [CPU: ▼18.50ms] Passed 4 tests

Analyzing server-side resources used by PageLoader Lite - Loading Screen
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.16 ▼4.48
Dashboard /wp-admin3.37 ▲0.0741.93 ▼4.00
Posts /wp-admin/edit.php3.42 ▲0.0647.15 ▼1.60
Add New Post /wp-admin/post-new.php3.21 ▼2.6831.61 ▼63.92
Media Library /wp-admin/upload.php3.29 ▲0.0641.77 ▲7.98

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for PageLoader Lite - Loading Screen
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲14113.25 ▼1.152.46 ▲0.3869.17 ▲26.09
Dashboard /wp-admin2,206 ▲184.81 ▼1.06111.73 ▲10.1942.93 ▲0.93
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0037.82 ▼6.9134.88 ▼3.58
Add New Post /wp-admin/post-new.php6,237 ▲4,72326.21 ▲8.71890.50 ▲245.6467.88 ▲10.02
Media Library /wp-admin/upload.php1,388 ▼04.31 ▲0.1399.71 ▲1.3843.66 ▲0.95

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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)
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 items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/pageloader-lite/custom_controls.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pageloader-lite/pageloader-lite.php:218
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_singular() in wp-content/plugins/pageloader-lite/include.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: preloader, loading screen, loader, icon loader, spinner

pageloader-lite/pageloader-lite.php Passed 13 tests

"PageLoader Lite - Loading Screen" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
90 characters long description:
Loading Screen for WordPress. Customize under Appearance → Customize → PageLoader Lite

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

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/pageloader-lite-gopro.png25.63KB25.66KB0.00%