67% wp-pleasewait

Code Review | WP PleaseWait - Loading Screen

WordPress plugin WP PleaseWait - Loading Screen scored67%from 54 tests.

About plugin

  • Plugin page: wp-pleasewait
  • Plugin version: 2.2.3
  • PHP compatiblity: 5.4.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Mar 29, 2018
  • Latest release: Nov 10, 2020
  • Number of updates: 51
  • Update frequency: every 18.8 days
  • Top authors: ngoclb (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /4,543 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼4.40ms] Passed 4 tests

Analyzing server-side resources used by WP PleaseWait - Loading Screen
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1838.92 ▼4.65
Dashboard /wp-admin3.47 ▲0.1748.80 ▲0.14
Posts /wp-admin/edit.php3.59 ▲0.2349.94 ▼2.64
Add New Post /wp-admin/post-new.php6.05 ▲0.1686.62 ▼10.46
Media Library /wp-admin/upload.php3.39 ▲0.1637.35 ▲4.42
WP PleaseWait /wp-admin/options-general.php?page=wppleasewait-setting-admin3.3434.63

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP PleaseWait - Loading Screen
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲13113.49 ▼0.822.89 ▲0.5748.23 ▲0.31
Dashboard /wp-admin2,229 ▲445.08 ▲0.19112.90 ▼2.8639.24 ▼9.54
Posts /wp-admin/edit.php2,117 ▲282.30 ▲0.2439.35 ▼1.1531.99 ▼1.34
Add New Post /wp-admin/post-new.php1,535 ▼323.35 ▲0.35690.73 ▲53.3736.49 ▼16.80
Media Library /wp-admin/upload.php1,411 ▲234.35 ▲0.1198.06 ▲4.4640.12 ▼4.42
WP PleaseWait /wp-admin/options-general.php?page=wppleasewait-setting-admin1,4232.2354.4634.88

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method WpPleaseWait::uninstall() should not be called statically
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wppleasewait-setting-admin
    • > User deprecated in wp-includes/functions.php+5453
    Function readonly is deprecated since version 5.9.0! Use wp_readonly() instead.

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-pleasewait/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (WP PleaseWait Settings), #2 (WP PleaseWait Settings), #3 (WP PleaseWait Loading Screen)
You can take inspiration from this readme.txt

wp-pleasewait/pleasewait.php 85% from 13 tests

"WP PleaseWait - Loading Screen" version 2.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-pleasewait.php" instead of "pleasewait.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 168 characters long)

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 plugin1,022 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4921351,009
Markdown19010
CSS2002
JavaScript11101

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity40.00
▷ Minimum class complexity33.00
▷ Maximum class complexity47.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods42
▷ Static methods24.76%
▷ Public methods4095.24%
▷ Protected methods00.00%
▷ Private methods24.76%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants32
▷ Global constants00.00%
▷ Class constants32100.00%
▷ Public constants32100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 compressed PNG files occupy 0.15MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/kofi2.png16.04KB8.40KB▼ 47.65%
screenshot-2.png62.39KB66.81KB0.00%
screenshot-3.png14.29KB15.53KB0.00%
screenshot-1.png65.96KB69.70KB0.00%