79% hybrid-animations

Code Review | Pixobe Hybrid Animations

WordPress plugin Pixobe Hybrid Animations scored79%from 54 tests.

About plugin

  • Plugin page: hybrid-animations
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Jun 12, 2022
  • Latest release: Jun 12, 2022
  • Number of updates: 2
  • Update frequency: every 9.0 days
  • Top authors: pixobe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /198 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Pixobe Hybrid Animations
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0625.77 ▼15.76
Dashboard /wp-admin3.32 ▲0.0242.16 ▼9.18
Posts /wp-admin/edit.php3.37 ▲0.0248.06 ▼12.35
Add New Post /wp-admin/post-new.php5.45 ▼0.4369.04 ▼26.19
Media Library /wp-admin/upload.php3.19 ▼0.0327.41 ▼5.98

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
hybrid-animations
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Pixobe Hybrid Animations
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,501 ▼2453.61 ▼10.971.12 ▼0.7639.97 ▼4.07
Dashboard /wp-admin2,010 ▼1751.62 ▼4.1916.92 ▼97.5541.57 ▼4.45
Posts /wp-admin/edit.php1,993 ▼961.40 ▼0.608.47 ▼32.7134.04 ▲2.00
Add New Post /wp-admin/post-new.php961 ▼5732.04 ▼21.1321.91 ▼642.7011.46 ▼39.20
Media Library /wp-admin/upload.php904 ▼4812.03 ▼2.1321.96 ▼79.8428.19 ▼18.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • hybrid-animations
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/hybrid-animations/includes/functions.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/hybrid-animations/hybrid-animations.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: sliders, animate text, images

hybrid-animations/hybrid-animations.php Passed 13 tests

Analyzing the main PHP file in "Pixobe Hybrid Animations" version 1.0.0
41 characters long description:
Animate text, image, slider and anything.

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
There were no executable files found in this plugin151 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP22684106
JavaScript174045

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
PNG images were not found in this plugin