83% u-loader

Code Review | uLoader - A Simple Preloader

WordPress plugin uLoader - A Simple Preloader scored83%from 54 tests.

About plugin

  • Plugin page: u-loader
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.4
  • WordPress version: 6.3.1
  • First release: Jun 9, 2020
  • Latest release: Jun 25, 2020
  • Number of updates: 4
  • Update frequency: every 4.3 days
  • Top authors: utpalbarmanbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,998 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.23ms] Passed 4 tests

A check of server-side resources used by uLoader - A Simple Preloader
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.84 ▼7.11
Dashboard /wp-admin3.32 ▲0.0149.78 ▼0.76
Posts /wp-admin/edit.php3.37 ▲0.0149.19 ▲1.36
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.86 ▼10.42
Media Library /wp-admin/upload.php3.24 ▲0.0134.96 ▲4.38

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by uLoader - A Simple Preloader
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲11313.26 ▼1.102.41 ▲0.5039.42 ▼4.06
Dashboard /wp-admin2,222 ▲344.84 ▼0.04109.25 ▼3.7138.79 ▼6.77
Posts /wp-admin/edit.php2,108 ▲192.02 ▲0.0541.13 ▼0.3634.95 ▼2.30
Add New Post /wp-admin/post-new.php1,532 ▲12022.93 ▲5.04652.83 ▲35.5964.99 ▼7.71
Media Library /wp-admin/upload.php1,407 ▲194.19 ▼0.0598.28 ▼8.9243.36 ▲0.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/u-loader/u-loader.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: loader, preloader, wp preloader, spinner, wp loader

u-loader/u-loader.php 77% from 13 tests

This is the main PHP file of "uLoader - A Simple Preloader" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 154 characters long)
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.0" instead of "7.2")
  • Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected140 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26948116
CSS13024

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions9
▷ Named functions9100.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
There were not PNG files found in your plugin