89% css3-preloader-ultimate

Code Review | Ultimate WordPress Preloader

WordPress plugin Ultimate WordPress Preloader scored89%from 54 tests.

About plugin

  • Plugin page: css3-preloader-ul...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.1.1
  • WordPress version: 6.3.1
  • First release: Aug 28, 2015
  • Latest release: Apr 24, 2019
  • Number of updates: 8
  • Update frequency: every 167.0 days
  • Top authors: magniumthemes (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /15,042 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.39ms] Passed 4 tests

Server-side resources used by Ultimate WordPress Preloader
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.14 ▼1.39
Dashboard /wp-admin3.39 ▲0.0447.09 ▼14.47
Posts /wp-admin/edit.php3.50 ▲0.1447.47 ▲3.15
Add New Post /wp-admin/post-new.php5.97 ▲0.0883.19 ▼16.86
Media Library /wp-admin/upload.php3.31 ▲0.0835.54 ▲3.80
Ultimate Preloader /wp-admin/options-general.php?page=mgupreloader_settings3.2633.55

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
mgupreloader_options

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate WordPress Preloader
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲15913.28 ▼1.012.15 ▲0.3943.46 ▼3.40
Dashboard /wp-admin2,306 ▲1154.92 ▼0.00109.06 ▲3.6175.89 ▲29.93
Posts /wp-admin/edit.php2,186 ▲972.17 ▲0.1745.34 ▲4.7937.26 ▼0.78
Add New Post /wp-admin/post-new.php1,673 ▲15024.89 ▲1.70623.41 ▲17.68164.32 ▲105.99
Media Library /wp-admin/upload.php1,488 ▲1034.18 ▼0.01106.25 ▲0.5746.18 ▲1.99
Ultimate Preloader /wp-admin/options-general.php?page=mgupreloader_settings1,2271.8631.4060.44

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • mgupreloader_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === css3-preloader-ultimate === )
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
You can look at the official readme.txt

css3-preloader-ultimate/mgupreloader.php 92% from 13 tests

The primary PHP file in "Ultimate WordPress Preloader" version 1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("css3-preloader-ultimate.php" instead of "mgupreloader.php")

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 detected660 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP29479346
CSS21045155
PO File1313185
JavaScript215074

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity19.00
▷ Minimum class complexity6.00
▷ Maximum class complexity32.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/color_black.png2.16KB1.23KB▼ 43.21%
img/hosting-wp-button.png26.03KB9.36KB▼ 64.05%
img/color_white.png2.15KB1.22KB▼ 43.49%