74% tumult-hype-animations

Code Review | Tumult Hype Animations

WordPress plugin Tumult Hype Animations scored74%from 54 tests.

About plugin

  • Plugin page: tumult-hype-anima...
  • Plugin version: 1.9.9
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 15, 2017
  • Latest release: Jul 18, 2023
  • Number of updates: 36
  • Update frequency: every 57.5 days
  • Top authors: tumultinc (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /20,623 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼5.99ms] Passed 4 tests

An overview of server-side resources used by Tumult Hype Animations
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1441.38 ▼3.11
Dashboard /wp-admin3.44 ▲0.1047.35 ▼15.97
Posts /wp-admin/edit.php3.55 ▲0.2050.85 ▲3.21
Add New Post /wp-admin/post-new.php6.04 ▲0.1696.93 ▼4.33
Media Library /wp-admin/upload.php3.37 ▲0.1435.12 ▼0.56

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 57 new files
Database: 1 new table, 7 new options
New tables
wp_hypeanimations
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
hypeanimations_db_version
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Tumult Hype Animations
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲13213.98 ▼0.401.67 ▼0.1630.26 ▼11.92
Dashboard /wp-admin2,281 ▲965.81 ▲0.90133.44 ▲24.7251.13 ▲4.22
Posts /wp-admin/edit.php2,167 ▲782.64 ▲0.5954.11 ▲17.7746.60 ▲13.36
Add New Post /wp-admin/post-new.php1,585 ▲7123.82 ▲6.17673.60 ▲6.9850.26 ▼2.75
Media Library /wp-admin/upload.php1,466 ▲814.98 ▲0.79109.47 ▲13.5051.24 ▲9.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/tumult-hype-animations/uninstall.php+29
    rmdir(wp-content/uploads/hypeanimations//tmp): Directory not empty
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% 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 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
Almost there! Just fix the following items
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tumult-hype-animations/includes/shortcode.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tumult-hype-animations/includes/init.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tumult-hype-animations/includes/iframe.php:2
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/tumult-hype-animations/includes/variables.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tumult-hype-animations/hypeanimations.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tumult-hype-animations/includes/adminpanel.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tumult-hype-animations/includes/functions.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
2 plugin tags: hype, animation

tumult-hype-animations/hypeanimations.php 85% from 13 tests

The main file in "Tumult Hype Animations" v. 1.9.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tumult-hype-animations.php" instead of "hypeanimations.php")
  • 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 an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected4,046 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PO File155866781,612
CSS4105571,528
PHP85658734
JavaScript2536168
Markdown1304

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
images/sort_asc.png0.17KB0.24KB0.00%
images/sort_desc_disabled.png0.14KB0.25KB0.00%
css/images/ui-bg_glass_65_ffffff_1x400.png0.09KB0.10KB0.00%
css/images/ui-bg_flat_75_ffffff_40x100.png3.74KB0.08KB▼ 97.73%