90% page-loading-effects

Code Review | Page Loading Effects

WordPress plugin Page Loading Effects scored90%from 54 tests.

About plugin

  • Plugin page: page-loading-effects
  • Plugin version: 3.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: Jun 3, 2016
  • Latest release: Jan 19, 2023
  • Number of updates: 13
  • Update frequency: every 186.4 days
  • Top authors: esstat17 (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

3,000+ active /39,147 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by Page Loading Effects
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.99 ▲2.24
Dashboard /wp-admin3.36 ▲0.0149.56 ▼14.14
Posts /wp-admin/edit.php3.47 ▲0.1146.67 ▼1.58
Add New Post /wp-admin/post-new.php5.96 ▲0.0783.39 ▼9.03
Media Library /wp-admin/upload.php3.28 ▲0.0535.91 ▲2.01

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Page Loading Effects
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲8114.42 ▼0.112.46 ▲0.6337.46 ▼2.97
Dashboard /wp-admin2,232 ▲525.73 ▲0.0786.89 ▼6.8635.94 ▼2.75
Posts /wp-admin/edit.php2,139 ▲422.29 ▲0.2937.46 ▲1.0732.87 ▼1.72
Add New Post /wp-admin/post-new.php1,564 ▲3318.12 ▼4.94627.82 ▲8.0448.12 ▼34.50
Media Library /wp-admin/upload.php1,431 ▲284.49 ▲0.2698.48 ▼2.6643.87 ▼0.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

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

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: preloader, animation, pageloader, load, effects...

page-loading-effects/page-loading-effects.php 92% from 13 tests

"Page Loading Effects" version 3.0.0'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: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected755 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP660271398
CSS22824285
JavaScript3212172

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity10.50
▷ Minimum class complexity8.00
▷ Maximum class complexity13.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods660.00%
▷ Protected methods00.00%
▷ Private methods440.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin