79% animate-to-anything

Code Review | Animate To Anything

WordPress plugin Animate To Anything scored 79% from 54 tests.

About plugin

  • Plugin page: animate-to-anything
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 17, 2017
  • Latest release: Apr 17, 2017
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: manpreetsingh154 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 614 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.95MB] [CPU: ▼34.78ms] Passed 4 tests

This is a short check of server-side resources used by Animate To Anything
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.41 ▼11.44
Dashboard /wp-admin2.99 ▼0.3123.24 ▼28.24
Posts /wp-admin/edit.php2.99 ▼0.3624.22 ▼23.17
Add New Post /wp-admin/post-new.php2.99 ▼2.8922.52 ▼73.81
Media Library /wp-admin/upload.php2.99 ▼0.2321.33 ▼13.88

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Animate To Anything
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲8913.26 ▼1.334.25 ▲2.4440.90 ▼2.52
Dashboard /wp-admin2,219 ▲275.83 ▲0.8899.01 ▼12.3740.59 ▲1.57
Posts /wp-admin/edit.php2,108 ▲192.05 ▲0.0347.20 ▲11.1637.11 ▲5.12
Add New Post /wp-admin/post-new.php1,547 ▲1423.22 ▲0.24669.24 ▲2.9666.30 ▲14.11
Media Library /wp-admin/upload.php1,407 ▲224.23 ▲0.0498.56 ▼3.3341.29 ▼4.20

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/animate-to-anything/animate_anything.php+19
    _() expects exactly 1 parameter, 2 given
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-1.png) image required
Please take inspiration from this readme.txt

animate-to-anything/animate_anything.php 85% from 13 tests

The primary PHP file in "Animate To Anything" version 0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("animate-to-anything.php" instead of "animate_anything.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,921 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS2529112,836
PHP171185

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
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
screenshot-1.png28.33KB16.42KB▼ 42.04%