83% dwl-preloader

Code Review | DWL Preloader

WordPress plugin DWL Preloader scored 83% from 54 tests.

About plugin

  • Plugin page: dwl-preloader
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8.3
  • WordPress version: 6.3.1
  • First release: Sep 3, 2014
  • Latest release: Jan 25, 2022
  • Number of updates: 18
  • Update frequency: every 150.1 days
  • Top authors: yeasin62 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active / 6,334 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by DWL Preloader
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.06 ▼1.95
Dashboard /wp-admin3.31 ▲0.0153.45 ▲0.94
Posts /wp-admin/edit.php3.36 ▲0.0150.42 ▼0.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.53 ▼0.57
Media Library /wp-admin/upload.php3.23 ▲0.0135.96 ▲1.56

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for DWL Preloader
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲18113.68 ▼0.597.91 ▲6.2142.95 ▼0.82
Dashboard /wp-admin2,203 ▲125.80 ▲0.9598.97 ▼9.2139.32 ▼1.38
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0040.28 ▲0.3836.29 ▲0.86
Add New Post /wp-admin/post-new.php1,533 ▼023.55 ▲0.26630.40 ▼56.0856.14 ▲3.78
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0592.99 ▼21.0641.89 ▼5.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

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
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
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/dwl-preloader/admin/admin.php
    • > /wp-content/plugins/dwl-preloader/dwl_preloader.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please a description for screenshot #1 in dwl-preloader/assets to your readme.txt
  • Contributors: Contributors not specified
You can look at the official readme.txt

dwl-preloader/dwl_preloader.php 85% from 13 tests

The main PHP file in "DWL Preloader" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("dwl-preloader.php" instead of "dwl_preloader.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
No dangerous file extensions were detected120 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS13073
PHP241147

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin