90% full-screen-preloader

Code Review | Full screen preloader

WordPress plugin Full screen preloader scored90%from 54 tests.

About plugin

  • Plugin page: full-screen-prelo...
  • Plugin version: 1.0.2
  • PHP compatiblity: 3.0.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 27, 2019
  • Latest release: Mar 1, 2019
  • Number of updates: 9
  • Update frequency: every 0.3 days
  • Top authors: vidya_l (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /692 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.29ms] Passed 4 tests

An overview of server-side resources used by Full screen preloader
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0442.47 ▲7.46
Dashboard /wp-admin3.37 ▲0.0647.50 ▲1.16
Posts /wp-admin/edit.php3.48 ▲0.1248.12 ▼13.97
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.79 ▲2.96
Media Library /wp-admin/upload.php3.27 ▲0.0335.03 ▲0.68
Full Screen Preloader /wp-admin/options-general.php?page=full-screen-preloader3.2636.55

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Full screen preloader
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,174 ▲40315.43 ▲1.089.81 ▲7.9745.21 ▲4.15
Dashboard /wp-admin2,355 ▲1786.31 ▲0.64106.49 ▲23.1436.37 ▼9.87
Posts /wp-admin/edit.php2,286 ▲1863.49 ▲1.5250.09 ▲9.5032.06 ▼4.50
Add New Post /wp-admin/post-new.php1,554 ▲2623.14 ▼0.16618.51 ▼47.3235.21 ▼21.45
Media Library /wp-admin/upload.php1,423 ▲204.33 ▲0.1480.56 ▼18.4341.54 ▼2.13
Full Screen Preloader /wp-admin/options-general.php?page=full-screen-preloader1,0883.5450.9824.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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 a shallow check for browser errors
No browser errors were detected

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
These attributes need your attention: The official readme.txt might help

full-screen-preloader/full-screen-preloader.php Passed 13 tests

"Full screen preloader" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
117 characters long description:
A powerful plugin to show full screen preloader with 8 different predefined spinner style and background color option

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,698 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS460171,898
SVG100504
JavaScript42823179
PHP1564117

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.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
1 PNG file occupies 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/default-user.png44.17KB31.61KB▼ 28.44%