90% page-animations-and-transitions

Code Review | Page Animations And Transitions

WordPress plugin Page Animations And Transitions scored90%from 54 tests.

About plugin

  • Plugin page: page-animations-a...
  • Plugin version: 2.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Aug 11, 2014
  • Latest release: Nov 3, 2023
  • Number of updates: 59
  • Update frequency: every 57.1 days
  • Top authors: weblizar (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

2,000+ active /126,062 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.04MB] [CPU: ▼10.47ms] Passed 4 tests

This is a short check of server-side resources used by Page Animations And Transitions
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.24 ▼4.28
Dashboard /wp-admin3.35 ▲0.0144.77 ▼18.65
Posts /wp-admin/edit.php3.40 ▲0.0548.56 ▲1.13
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.76 ▼17.53
Media Library /wp-admin/upload.php3.28 ▲0.0533.14 ▼1.42

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

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

Browser metrics Passed 4 tests

Page Animations And Transitions: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲16813.82 ▼0.528.79 ▲7.1037.66 ▼6.98
Dashboard /wp-admin2,211 ▲345.62 ▼0.1093.35 ▲0.7239.69 ▼0.52
Posts /wp-admin/edit.php2,116 ▲161.94 ▼0.0236.09 ▲1.1134.25 ▼3.14
Add New Post /wp-admin/post-new.php1,539 ▲423.72 ▼1.86667.83 ▲40.3858.02 ▼19.09
Media Library /wp-admin/upload.php1,416 ▲134.17 ▼0.0296.10 ▼2.0642.15 ▼4.44

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • wl_page_trans_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: page transition, page loading effect, animation plugin, animation, page animation...

page-animations-and-transitions/page-animations-and-transitions.php 92% from 13 tests

The main file in "Page Animations And Transitions" v. 2.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin29,597 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
CSS73,2838117,240
SVG30128,954
JavaScript411322,271
PO File18381,543599
PHP25828533

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/star_PNG1590.png3.57KB1.04KB▼ 70.78%