74% goanimate

Code Review | Go Animate

WordPress plugin Go Animate scored 74% from 54 tests.

About plugin

  • Plugin page: goanimate
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Sep 21, 2015
  • Latest release: Jun 14, 2016
  • Number of updates: 15
  • Update frequency: every 17.9 days
  • Top authors: antonio.gocaj (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 2,893 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.79ms] Passed 4 tests

An overview of server-side resources used by Go Animate
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.26 ▼0.67
Dashboard /wp-admin3.33 ▲0.0246.11 ▼6.20
Posts /wp-admin/edit.php3.38 ▲0.0245.29 ▼2.34
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.45 ▼5.94
Media Library /wp-admin/upload.php3.25 ▲0.0238.40 ▲3.07

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: 3 new tables, 7 new options
New tables
wp_da_ga_settings
wp_da_ga_effects
wp_da_goanimate
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
jal_db_version
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Go Animate
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲22313.76 ▼0.6212.46 ▲10.4235.56 ▼8.49
Dashboard /wp-admin2,226 ▲414.98 ▼0.9195.93 ▼16.9375.53 ▲28.64
Posts /wp-admin/edit.php2,109 ▲202.03 ▲0.0335.12 ▼0.7333.01 ▼1.57
Add New Post /wp-admin/post-new.php1,535 ▲1823.06 ▲5.45744.21 ▲91.7451.62 ▼7.83
Media Library /wp-admin/upload.php1,405 ▲144.24 ▼0.06108.67 ▲10.0276.95 ▲33.37

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
You still need to fix the following
  • Zombie tables detected upon uninstall: 3 tables
    • wp_da_ga_effects
    • wp_da_goanimate
    • wp_da_ga_settings
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • jal_db_version
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/goanimate/main.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/goanimate/goanimate.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
6 plugin tags: css animate, elements animator, html animate, css3 animation, animations...

goanimate/main.php 92% from 13 tests

The primary PHP file in "Go Animate" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("goanimate.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin647 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP28917334
CSS24917291
JavaScript112122

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions6
▷ Named functions6100.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
3 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
q2.png0.79KB0.80KB0.00%
icon.png1.88KB1.07KB▼ 43.18%
screenshot-1.png73.94KB23.35KB▼ 68.42%