83% page-loading-animation

Code Review | Page Loading Animation

WordPress plugin Page Loading Animation scored83%from 54 tests.

About plugin

  • Plugin page: page-loading-anim...
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Oct 22, 2018
  • Latest release: Nov 2, 2022
  • Number of updates: 48
  • Update frequency: every 30.7 days
  • Top authors: mhkanon (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /6,692 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.10ms] Passed 4 tests

Server-side resources used by Page Loading Animation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.78 ▲4.15
Dashboard /wp-admin3.35 ▲0.0447.62 ▲3.36
Posts /wp-admin/edit.php3.40 ▲0.0442.25 ▼3.87
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.49 ▼12.70
Media Library /wp-admin/upload.php3.27 ▲0.0435.58 ▲0.81

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Page Loading Animation
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,076 ▲31513.98 ▼0.5918.39 ▲16.7652.06 ▲11.42
Dashboard /wp-admin2,210 ▲295.65 ▼0.0896.02 ▼2.8642.17 ▼0.02
Posts /wp-admin/edit.php2,112 ▲121.97 ▼0.0537.26 ▼0.1434.67 ▲0.81
Add New Post /wp-admin/post-new.php1,547 ▲2118.34 ▼5.02638.02 ▼74.5563.86 ▲2.87
Media Library /wp-admin/upload.php1,409 ▲124.15 ▲0.0599.91 ▼0.5343.97 ▼1.31

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/page-loading-animation/page-loading-animation.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-loading-animation/pla_menu.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Requires php: Version not formatted correctly
  • Screenshots: These screenshots do not have images: #4 (This is screenshot four), #5 (This is screenshot five), #6 (This is screenshot six), #7 (This is screenshot seven), #8 (This is screenshot eight)
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

page-loading-animation/page-loading-animation.php 85% from 13 tests

"Page Loading Animation" version 1.1.6'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:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Description: The description should be shorter than 140 characters (currently 217 characters long)

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
There were no executable files found in this plugin1,314 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS213211949
PHP38422270
JavaScript3451493
SVG2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity5.67
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected