63% maz-loader

Code Review | MAZ Loader – Preloader Builder for WordPress

WordPress plugin MAZ Loader – Preloader Builder for WordPress scored63%from 54 tests.

About plugin

  • Plugin page: maz-loader
  • Plugin version: 1.5.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-6.0
  • WordPress version: 6.3.1
  • First release: Nov 12, 2019
  • Latest release: Jul 31, 2022
  • Number of updates: 72
  • Update frequency: every 13.8 days
  • Top authors: feataholic (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

2,000+ active /27,795 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.68MB] [CPU: ▼5.81ms] Passed 4 tests

Server-side resources used by MAZ Loader – Preloader Builder for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.12 ▲0.6640.32 ▲4.69
Dashboard /wp-admin4.00 ▲0.6650.12 ▼10.35
Posts /wp-admin/edit.php4.05 ▲0.7050.20 ▲0.32
Add New Post /wp-admin/post-new.php6.61 ▲0.7294.69 ▼17.91
Media Library /wp-admin/upload.php3.93 ▲0.7042.17 ▲9.62
Settings /wp-admin/admin.php?page=maz-loader-settings3.9640.65
MAZ Loader /wp-admin/admin.php?page=maz-loader-dashboard3.9839.43
View Loaders /wp-admin/admin.php?page=maz-loader-list3.9440.73
Create New Loader /wp-admin/admin.php?page=maz-loader4.0345.08

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 231 new files
Database: 2 new tables, 8 new options
New tables
wp_mzldr_impressions
wp_mzldr_loaders
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
mzldr_settings_options
can_compress_scripts
widget_recent-posts
mzldr_version
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for MAZ Loader – Preloader Builder for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,983 ▲23714.13 ▼0.566.36 ▲4.6936.77 ▼1.83
Dashboard /wp-admin2,277 ▲865.14 ▲0.21101.69 ▼0.5182.48 ▲39.06
Posts /wp-admin/edit.php2,165 ▲762.31 ▲0.3337.03 ▼7.8934.85 ▲0.18
Add New Post /wp-admin/post-new.php6,373 ▲4,84525.87 ▲7.75862.43 ▲233.5638.42 ▼21.21
Media Library /wp-admin/upload.php1,450 ▲624.40 ▲0.2296.14 ▼6.9978.07 ▲30.57
Settings /wp-admin/admin.php?page=maz-loader-settings1,5483.4161.13177.69
MAZ Loader /wp-admin/admin.php?page=maz-loader-dashboard1,6163.3745.75113.59
View Loaders /wp-admin/admin.php?page=maz-loader-list1,4513.3142.5992.49
Create New Loader /wp-admin/admin.php?page=maz-loader2,5154.0176.8992.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_mzldr_loaders
    • wp_mzldr_impressions
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • mzldr_version
    • can_compress_scripts
    • mzldr_settings_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 62× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/maz-loader/admin/models/statistics_model.php
    • > /wp-content/plugins/maz-loader/maz-loader.php
    • > /wp-content/plugins/maz-loader/public/partials/fields/custom_html.php
    • > /wp-content/plugins/maz-loader/admin/partials/forms/fields/hidden.php
    • > /wp-content/plugins/maz-loader/admin/partials/forms/fields/range_slider.php
    • > /wp-content/plugins/maz-loader/admin/partials/forms/fields/settings/start.php
    • > /wp-content/plugins/maz-loader/admin/partials/pro/popup.php
    • > /wp-content/plugins/maz-loader/admin/partials/loader/fields/text.php
    • > /wp-content/plugins/maz-loader/admin/partials/forms/fields/wrapper/end.php
    • > /wp-content/plugins/maz-loader/admin/partials/forms/fields/separator.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'MZLDR_Publishing_Rules' not found in wp-content/plugins/maz-loader/includes/helpers/publishing_rules/class-maz-loader-homepage-rule.php:21

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=maz-loader
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=maz-loader
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=maz-loader
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.clear is deprecated since version 5.5.0! Use wp.i18n instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=maz-loader
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.clearAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: page preloader, preload, loading screen, site preloader, preloader...

maz-loader/maz-loader.php Passed 13 tests

Analyzing the main PHP file in "MAZ Loader – Preloader Builder for WordPress" version 1.5.0
137 characters long description:
MAZ Loader is a powerful and easy to use Preloader builder that makes your visitors a delight to wait for your website to finish loading.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin7,103 lines of code in 163 files:
LanguageFilesBlank linesComment linesLines of code
PHP941,0341,9726,112
SVG5603785
JavaScript92825189
XML10014
CSS3303

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.41
Average class complexity15.86
▷ Minimum class complexity1.00
▷ Maximum class complexity99.00
Average method complexity3.72
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes36
▷ Abstract classes00.00%
▷ Concrete classes36100.00%
▷ Final classes00.00%
Methods198
▷ Static methods3417.17%
▷ Public methods17588.38%
▷ Protected methods52.53%
▷ Private methods189.09%
Functions22
▷ Named functions00.00%
▷ Anonymous functions22100.00%
Constants13
▷ Global constants13100.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
4 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
media/admin/img/loader-icon.png0.65KB0.60KB▼ 6.78%
media/admin/img/cp-banner.png36.83KB20.32KB▼ 44.83%
media/admin/img/loader-icon-dark.png0.48KB0.73KB0.00%
media/admin/img/loader-icon-light.png1.60KB0.73KB▼ 54.55%