78% loading-page

Code Review | Loading Page with Loading Screen

WordPress plugin Loading Page with Loading Screen scored78%from 54 tests.

About plugin

  • Plugin page: loading-page
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.6-6.4
  • WordPress version: 6.3.1
  • First release: Apr 5, 2013
  • Latest release: Nov 23, 2023
  • Number of updates: 165
  • Update frequency: every 23.5 days
  • Top authors: codepeople (100%)

Code review

54 tests

User reviews

117 reviews

Install metrics

10,000+ active /465,218 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.23MB] [CPU: ▼8.25ms] Passed 4 tests

Analyzing server-side resources used by Loading Page with Loading Screen
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2542.19 ▼0.38
Dashboard /wp-admin3.54 ▲0.1947.70 ▼25.52
Posts /wp-admin/edit.php3.66 ▲0.3049.05 ▼2.39
Add New Post /wp-admin/post-new.php6.12 ▲0.2394.24 ▼4.71
Media Library /wp-admin/upload.php3.47 ▲0.2337.10 ▲1.27

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
can_compress_scripts
installed_loading-page
loading_page_options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Loading Page with Loading Screen
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,064 ▲31713.54 ▲0.3122.16 ▲18.1857.11 ▲12.13
Dashboard /wp-admin2,199 ▲225.50 ▼0.1882.79 ▼18.0236.80 ▼5.70
Posts /wp-admin/edit.php2,107 ▲72.00 ▲0.0437.26 ▼3.2632.79 ▼4.47
Add New Post /wp-admin/post-new.php1,528 ▲223.76 ▲0.59636.43 ▼16.1643.26 ▼8.14
Media Library /wp-admin/upload.php1,401 ▲14.21 ▲0.0495.19 ▼1.2442.04 ▲0.16
Loading Page /wp-admin/loading-page.php260.410.1213.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • installed_loading-page
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loading-page/banner.php:105
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/loading-page/loading-screens/logo/adminsection.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loading-page/banner.php:105

User-side errors 0% from 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (22 tag instead of maximum 10)
The official readme.txt is a good inspiration

loading-page/loading-page.php 92% from 13 tests

The main PHP script in "Loading Page with Loading Screen" version 1.1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 188 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,251 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP61071611,213
JavaScript10549497
PO File1106106249
HTML110181
CSS415072
SVG130029
INI22210

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.74
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions2696.30%
▷ Anonymous functions13.70%
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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/consumption_graph.png10.65KB10.25KB▼ 3.80%