73% preloader-awesome

Code Review | Preloader Awesome - Page Loading Animation with Spinner & Gif

WordPress plugin Preloader Awesome - Page Loading Animation with Spinner & Gif scored73%from 54 tests.

About plugin

  • Plugin page: preloader-awesome
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Oct 12, 2020
  • Latest release: Dec 16, 2022
  • Number of updates: 12
  • Update frequency: every 66.5 days
  • Top authors: themesawesome (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /17,545 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: ▲1.71MB] [CPU: ▲8.63ms] Passed 4 tests

A check of server-side resources used by Preloader Awesome - Page Loading Animation with Spinner & Gif
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.21 ▲1.7471.12 ▲33.25
Dashboard /wp-admin5.07 ▲1.7260.51 ▲2.16
Posts /wp-admin/edit.php5.11 ▲1.7664.89 ▲20.19
Add New Post /wp-admin/post-new.php7.59 ▲1.7196.17 ▼0.13
Media Library /wp-admin/upload.php4.90 ▲1.6748.48 ▲12.28

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 549 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Preloader Awesome - Page Loading Animation with Spinner & Gif: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,155 ▲40918.52 ▲4.153.39 ▲1.6642.38 ▼0.06
Dashboard /wp-admin2,503 ▲3119.17 ▲4.23180.14 ▲76.2841.19 ▼0.48
Posts /wp-admin/edit.php2,415 ▲3266.23 ▲4.2285.99 ▲50.3235.07 ▲4.55
Add New Post /wp-admin/post-new.php1,607 ▲21519.90 ▲1.56733.90 ▲122.6238.78 ▼12.92
Media Library /wp-admin/upload.php1,550 ▲1626.60 ▲2.38106.52 ▲2.9643.93 ▼3.74
Documentation /wp-admin/crb_carbon_fields_container_documentation.php260.440.1013.38
Preloader /wp-admin/crb_carbon_fields_container_preloader_awesome_opts.php260.440.066.85

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% 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)
Good news, no errors were detected

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/preloader-awesome/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 149× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function carbon_get_post_meta() in wp-content/plugins/preloader-awesome/public/styles-page/style-genep.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function carbon_get_theme_option() in wp-content/plugins/preloader-awesome/public/styles/style-tujuh.php:4
    • > PHP Notice
      Undefined variable: plural in wp-content/plugins/preloader-awesome/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 32
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/preloader-awesome/vendor/htmlburger/carbon-fields/templates/Container/comment_meta.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Date_Field' not found in wp-content/plugins/preloader-awesome/vendor/htmlburger/carbon-fields/core/Field/Time_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/preloader-awesome/vendor/htmlburger/carbon-fields/core/Field/Map_Field.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Scripts_Field' not found in wp-content/plugins/preloader-awesome/vendor/htmlburger/carbon-fields/core/Field/Header_Scripts_Field.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/preloader-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Ancestor_ID_Condition.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/preloader-awesome/vendor/htmlburger/carbon-fields/core/Field/Predefined_Options_Field.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/preloader-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Blog_ID_Condition.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/crb_carbon_fields_container_documentation.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_documentation.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/crb_carbon_fields_container_preloader_awesome_opts.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_preloader_awesome_opts.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: preloader plugin, preloader, preloader animation, loading, page loader...

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

The main PHP script in "Preloader Awesome - Page Loading Animation with Spinner & Gif" version 1.0.0 is automatically included on every request by WordPress
134 characters long description:
Preloader Awesome is an awesome plugin that helps You to create the Page Preloader into your WordPress Site berfore serve it contents.

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
Everything looks great! No dangerous files found in this plugin32,350 lines of code in 477 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1865,3168,75613,481
PHP1963,2887,21212,416
CSS123801,1512,309
Sass5033601,760
PO File206107791,652
JSON800648
Markdown531084

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity8.14
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces24
Interfaces5
Traits0
Classes133
▷ Abstract classes118.27%
▷ Concrete classes12291.73%
▷ Final classes10.82%
Methods948
▷ Static methods9910.44%
▷ Public methods77381.54%
▷ Protected methods16517.41%
▷ Private methods101.05%
Functions119
▷ Named functions3630.25%
▷ Anonymous functions8369.75%
Constants35
▷ Global constants1234.29%
▷ Class constants2365.71%
▷ Public constants23100.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
No PNG files were detected