10% hype-animations

Code Review | Hype Animations

WordPress plugin Hype Animations scored10%from 54 tests.

About plugin

  • Plugin page: hype-animations
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.5.1
  • WordPress version: 6.3.1
  • First release: Mar 24, 2016
  • Latest release: Apr 27, 2016
  • Number of updates: 26
  • Update frequency: every 1.3 days
  • Top authors: freeben (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,271 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/hype-animations/includes/functions.php+16
    syntax error, unexpected '}', expecting end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.19ms] Passed 4 tests

An overview of server-side resources used by Hype Animations
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.59 ▼9.11
Dashboard /wp-admin3.31 ▲0.0043.71 ▼4.36
Posts /wp-admin/edit.php3.36 ▲0.0042.09 ▼4.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.20 ▼7.18
Media Library /wp-admin/upload.php3.23 ▲0.0034.54 ▲2.75

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Hype Animations
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.001.56 ▼0.1939.08 ▼7.54
Dashboard /wp-admin2,195 ▲155.63 ▼0.0587.19 ▼2.7840.96 ▲1.29
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0737.51 ▼2.1833.99 ▲0.84
Add New Post /wp-admin/post-new.php1,526 ▼1123.13 ▲4.98595.12 ▼29.5562.83 ▼21.44
Media Library /wp-admin/upload.php1,400 ▲64.20 ▲0.0496.73 ▼5.2642.48 ▼0.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
  • 7× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/hype-animations/uninstall.php
    • > /wp-content/plugins/hype-animations/includes/adminpanel.php
    • > /wp-content/plugins/hype-animations/includes/variables.php
    • > /wp-content/plugins/hype-animations/includes/shortcode.php
    • > /wp-content/plugins/hype-animations/includes/tinymcetool.php
    • > /wp-content/plugins/hype-animations/includes/init.php
    • > /wp-content/plugins/hype-animations/includes/iframe.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/hype-animations/includes/functions.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hype-animations/hypeanimations.php:11

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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: hype, animations

hype-animations/hypeanimations.php 92% from 13 tests

"Hype Animations" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("hype-animations.php" instead of "hypeanimations.php")

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 plugin4,142 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2113601,760
CSS444581,638
PHP922100632
PO File14348112

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/eralion.png28.36KB14.11KB▼ 50.23%