83% while-it-is-loading

Code Review | While Loading

WordPress plugin While Loading scored83%from 54 tests.

About plugin

  • Plugin page: while-it-is-loading
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.6.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2013
  • Latest release: Nov 30, 2016
  • Number of updates: 16
  • Update frequency: every 83.6 days
  • Top authors: Garmur (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /8,815 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.45ms] Passed 4 tests

A check of server-side resources used by While Loading
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.90 ▼3.66
Dashboard /wp-admin3.37 ▲0.0746.81 ▼3.83
Posts /wp-admin/edit.php3.42 ▲0.0649.30 ▲4.02
Add New Post /wp-admin/post-new.php5.97 ▲0.0881.93 ▼14.03
Media Library /wp-admin/upload.php3.29 ▲0.0633.94 ▼0.28
While loading /wp-admin/options-general.php?page=loading-settings3.2632.96

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for While Loading
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲5713.32 ▼0.931.78 ▼0.1941.70 ▼5.72
Dashboard /wp-admin2,229 ▲415.12 ▲0.08109.84 ▼5.9539.27 ▼7.23
Posts /wp-admin/edit.php2,117 ▲312.31 ▲0.3038.37 ▲0.3436.15 ▼1.48
Add New Post /wp-admin/post-new.php1,533 ▲1023.16 ▲2.18682.90 ▼0.4037.45 ▼12.61
Media Library /wp-admin/upload.php1,411 ▲234.46 ▲0.2499.70 ▼0.0442.07 ▼1.35
While loading /wp-admin/options-general.php?page=loading-settings1,0722.3742.5635.49

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/while-it-is-loading/while-is-loading.php

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

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

while-it-is-loading/while-is-loading.php 85% from 13 tests

Analyzing the main PHP file in "While Loading" version 3.0
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("while-it-is-loading.php" instead of "while-is-loading.php")

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
Good job! No executable or dangerous file extensions detected522 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP12932248
SVG10192
PO File124074
CSS10370
JavaScript20038

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.31
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods15
▷ Static methods16.67%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin