99% animate

Code Review | Animate

WordPress plugin Animate scored 99% from 54 tests.

About plugin

  • Plugin page: animate
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 5.8.1
  • First release: Oct 21, 2015
  • Latest release: Feb 9, 2016
  • Number of updates: 13
  • Update frequency: every 8.6 days
  • Top authors: adam1920 (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

900+ active / 8,452 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼147.50ms] Passed 4 tests

A check of server-side resources used by Animate
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0245.70 ▲8.19
Dashboard /wp-admin3.09 ▲0.0344.32 ▼9.97
Posts /wp-admin/edit.php3.20 ▲0.0844.28 ▼15.03
Add New Post /wp-admin/post-new.php5.46 ▲0.0394.66 ▼564.91
Media Library /wp-admin/upload.php3.03 ▲0.0335.12 ▼0.09

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 111 new files
Database: no new tables, 6 new options
New WordPress options
animate_option_customCSS
animate_option_offset
animate_option_animateClass
animate_option_live
animate_option_boxClass
animate_option_mobile

Browser metrics Passed 4 tests

Checking browser requirements for Animate
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,887 ▲25016.35 ▲0.8412.43 ▲4.6951.16 ▲2.83
Dashboard /wp-admin3,052 ▲1186.13 ▲0.19143.46 ▼9.37145.51 ▲26.63
Posts /wp-admin/edit.php2,814 ▲782.61 ▼0.0770.88 ▲2.3298.02 ▲0.73
Add New Post /wp-admin/post-new.php1,686 ▼521.67 ▲2.48299.59 ▼92.65126.35 ▲19.55
Media Library /wp-admin/upload.php1,840 ▲335.02 ▲0.02131.42 ▼30.96158.64 ▲27.75

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === animate === )
Please take inspiration from this readme.txt

animate/animate.php 77% from 13 tests

This is the main PHP file of "Animate" version 0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages/")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages/")
  • Git Repository: An alternative Git repository was detected

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
Everything looks great! No dangerous files found in this plugin5,305 lines of code in 100 files:
LanguageFilesBlank linesComment linesLines of code
Sass79732723,341
CSS27589898
JavaScript712242462
PHP710574450
Markdown155091
JSON30055
Ruby15138

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods29
▷ Static methods1655.17%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/round200x200.png15.15KB7.16KB▼ 52.76%
images/icon-20x20.png0.50KB0.35KB▼ 29.53%
images/stars.png1.13KB0.65KB▼ 42.24%
images/paypal_donate_button217x50.png15.20KB5.70KB▼ 62.50%