78% quick-preloader

Code Review | Quick Preloader

WordPress plugin Quick Preloader scored78%from 54 tests.

About plugin

  • Plugin page: quick-preloader
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-4.6
  • WordPress version: 6.3.1
  • First release: Sep 10, 2016
  • Latest release: Sep 22, 2016
  • Number of updates: 9
  • Update frequency: every 12.2 days
  • Top authors: infodesignbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /929 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.21ms] Passed 4 tests

A check of server-side resources used by Quick Preloader
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.60 ▲5.14
Dashboard /wp-admin3.33 ▲0.0244.93 ▼2.85
Posts /wp-admin/edit.php3.38 ▲0.0251.26 ▲5.52
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.07 ▼10.11
Media Library /wp-admin/upload.php3.25 ▲0.0233.10 ▼1.00
Quick Preloader /wp-admin/options-general.php?page=quick-preloader-options3.1929.33

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Quick Preloader
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,988 ▲24214.27 ▼0.4112.09 ▲10.3649.28 ▲5.08
Dashboard /wp-admin2,229 ▲385.17 ▲0.27117.85 ▲15.3341.99 ▼1.80
Posts /wp-admin/edit.php2,117 ▲282.29 ▲0.2641.36 ▲2.6034.45 ▼0.73
Add New Post /wp-admin/post-new.php1,540 ▼418.17 ▼0.31607.95 ▼42.5234.43 ▼29.14
Media Library /wp-admin/upload.php1,414 ▲234.39 ▲0.2299.52 ▼1.7743.05 ▼1.79
Quick Preloader /wp-admin/options-general.php?page=quick-preloader-options9612.5642.4625.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=quick-preloader-options
    • > Notice in wp-content/plugins/quick-preloader/quick-preloader.php+78
    Undefined index: link_img

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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/quick-preloader/quick-preloader.php:12
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/quick-preloader/quick-preloader.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 30 tag instead of maximum 10
Please take inspiration from this readme.txt

quick-preloader/quick-preloader.php Passed 13 tests

The main PHP file in "Quick Preloader" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
102 characters long description:
This plugin will enable custom background color and custom preloader image url in your wordpress site.

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
There were no executable files found in this plugin108 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13718105
JavaScript1003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin