67% sequence-animation

Code Review | Sequence animation

WordPress plugin Sequence animation scored67%from 54 tests.

About plugin

  • Plugin page: sequence-animation
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.8-5.2.2
  • WordPress version: 6.3.1
  • First release: Aug 28, 2019
  • Latest release: Sep 29, 2019
  • Number of updates: 13
  • Update frequency: every 2.6 days
  • Top authors: deimos252 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /556 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.89MB] [CPU: ▼53.45ms] Passed 4 tests

Analyzing server-side resources used by Sequence animation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.89 ▼39.09
Dashboard /wp-admin2.11 ▼1.195.85 ▼47.06
Posts /wp-admin/edit.php2.12 ▼1.246.14 ▼40.20
Add New Post /wp-admin/post-new.php2.11 ▼3.775.36 ▼87.46
Media Library /wp-admin/upload.php2.12 ▼1.115.05 ▼28.96
spfa_Welcome /wp-admin/index.php?page=spfa_my-welcome2.126.40

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 28 new files
Database: 1 new table, 6 new options
New tables
wp_spfa_animation_table
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Sequence animation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,988 ▲24214.30 ▼0.0616.62 ▲14.6540.26 ▼3.37
Dashboard /wp-admin2,203 ▲125.85 ▲0.9797.97 ▼0.9439.99 ▲1.61
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0338.83 ▼5.1436.49 ▼4.50
Add New Post /wp-admin/post-new.php1,533 ▲523.20 ▲4.90684.27 ▲30.6854.96 ▲5.93
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0291.93 ▼5.5642.14 ▼1.72
spfa_Welcome /wp-admin/index.php?page=spfa_my-welcome7512.0523.8125.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/index.php?page=spfa_my-welcome
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/sequence-animation/index.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (screenshot-1.jpg) image not found
Please take inspiration from this readme.txt

sequence-animation/index.php 85% from 13 tests

The principal PHP file in "Sequence animation" v. 1.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 148 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("sequence-animation.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin11,314 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript78206205,143
JSON3003,523
CoffeeScript4198341,121
CSS28847843
HTML13911394
PHP12024175
Markdown2980115

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions12
▷ Named functions1083.33%
▷ Anonymous functions216.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.71MB with 0.39MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
LOGO.png711.27KB271.15KB▼ 61.88%
cooltext333758638913341.png17.14KB8.94KB▼ 47.87%