90% safelayout-cute-preloader

Code Review | Safelayout Cute Preloader - CSS3 Wordpress Preloader

WordPress plugin Safelayout Cute Preloader - CSS3 Wordpress Preloader scored90%from 54 tests.

About plugin

  • Plugin page: safelayout-cute-p...
  • Plugin version: 2.0.1
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Dec 27, 2021
  • Latest release: Nov 8, 2023
  • Number of updates: 34
  • Update frequency: every 20.3 days
  • Top authors: safelayout (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

500+ active /3,583 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.45MB] [CPU: ▼3.98ms] Passed 4 tests

Server-side resources used by Safelayout Cute Preloader - CSS3 Wordpress Preloader
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1537.47 ▼4.42
Dashboard /wp-admin3.90 ▲0.5947.13 ▼8.79
Posts /wp-admin/edit.php3.95 ▲0.5949.76 ▲3.94
Add New Post /wp-admin/post-new.php6.42 ▲0.5394.11 ▼6.63
Media Library /wp-admin/upload.php3.76 ▲0.5336.14 ▲4.54
Safelayout Preloader /wp-admin/options-general.php?page=safelayout-cute-preloader3.7944.23

Server storage [IO: ▲0.70MB] [DB: ▲0.02MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
safelayout_preloader_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
safelayout_preloader_options_upgrade
safelayout_preloader_options_rate
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Safelayout Cute Preloader - CSS3 Wordpress Preloader
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,000 ▲23814.33 ▼0.025.21 ▲3.5350.04 ▲4.99
Dashboard /wp-admin2,199 ▲225.56 ▼0.0785.71 ▼6.4839.63 ▲0.31
Posts /wp-admin/edit.php2,101 ▲11.95 ▼0.0040.73 ▲3.9135.75 ▼1.82
Add New Post /wp-admin/post-new.php1,529 ▲322.70 ▼0.43613.18 ▼9.5352.65 ▼4.83
Media Library /wp-admin/upload.php1,407 ▲74.18 ▲0.0195.84 ▼6.3840.26 ▼5.07
Safelayout Preloader /wp-admin/options-general.php?page=safelayout-cute-preloader3,2514.60101.6190.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-comments
    • safelayout_preloader_options_upgrade
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • safelayout_preloader_options_rate
    • can_compress_scripts
    • db_upgraded
    • safelayout_preloader_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: loading, loader, wordpress preloader, preloader, preload

safelayout-cute-preloader/safelayout-cute-preloader.php Passed 13 tests

The entry point to "Safelayout Cute Preloader - CSS3 Wordpress Preloader" version 2.0.1 is a PHP file that has certain tags in its header comment area
67 characters long description:
Easily add a pure CSS animated preloader to your WordPress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected11,134 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP113264246,456
CSS41392893,879
JavaScript69645799

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity107.67
▷ Minimum class complexity4.00
▷ Maximum class complexity281.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods109
▷ Static methods00.00%
▷ Public methods109100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants4
▷ Global constants4100.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
6 PNG files occupy 0.23MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/image/pro-color-info.png5.54KB3.17KB▼ 42.85%
assets/image/safelayout-elegant-icons.png206.00KB73.86KB▼ 64.14%
assets/image/pro-bar-info.png4.64KB2.78KB▼ 40.02%
assets/image/pro-display-info.png7.28KB4.04KB▼ 44.53%
assets/image/pro-icon-info.png3.87KB2.42KB▼ 37.38%