68% animate-wp

Code Review | Animate WP

WordPress plugin Animate WP scored68%from 54 tests.

About plugin

  • Plugin page: animate-wp
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 26, 2021
  • Latest release: Jun 26, 2021
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: chathuJ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,206 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼1.94MB] [CPU: ▼57.26ms] Passed 4 tests

Analyzing server-side resources used by Animate WP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.425.29 ▼37.92
Dashboard /wp-admin2.07 ▼1.246.23 ▼46.61
Posts /wp-admin/edit.php2.07 ▼1.295.40 ▼49.22
Add New Post /wp-admin/post-new.php2.07 ▼3.826.70 ▼95.30
Media Library /wp-admin/upload.php2.07 ▼1.165.29 ▼29.26

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Animate WP: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.38 ▲0.131.71 ▼0.3042.54 ▼3.55
Dashboard /wp-admin2,211 ▲345.62 ▼0.0987.12 ▼16.6138.03 ▼7.30
Posts /wp-admin/edit.php2,119 ▲192.02 ▲0.0339.34 ▲1.9435.97 ▲0.90
Add New Post /wp-admin/post-new.php1,539 ▲1323.31 ▲0.06619.77 ▼12.3857.27 ▲7.15
Media Library /wp-admin/upload.php1,419 ▲194.21 ▲0.0395.97 ▼8.0340.99 ▼5.30

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the animate-wp handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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 | 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/animate-wp/includes/awp-settings-page.php
  • 2× 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/animate-wp/animate-wp.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/animate-wp/includes/awp-functions.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

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

animate-wp/animate-wp.php 92% from 13 tests

The primary PHP file in "Animate WP" version 0.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected133 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP31416132
CSS1061

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png6.34KB3.22KB▼ 49.18%
assets/banner-772x250.png30.81KB11.32KB▼ 63.26%
assets/banner-1544x500.png42.45KB17.14KB▼ 59.61%