94% animate-your-content

Code Review | Animate Your Content

WordPress plugin Animate Your Content scored 94% from 54 tests.

About plugin

  • Plugin page: animate-your-content
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-3.8.1
  • WordPress version: 5.8.1
  • First release: Feb 25, 2014
  • Latest release: Feb 26, 2014
  • Number of updates: 11
  • Update frequency: every 0.2 days
  • Top authors: fides-it (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 4,338 total downloads


Plugin footprint Passed 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.02MB] [CPU: ▼137.45ms] Passed 4 tests

This is a short check of server-side resources used by Animate Your Content
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1331.68 ▲7.93
Dashboard /wp-admin3.08 ▲0.0242.32 ▲0.38
Posts /wp-admin/edit.php3.13 ▲0.0238.48 ▼4.85
Add New Post /wp-admin/post-new.php5.44 ▲0.0190.96 ▼546.84
Media Library /wp-admin/upload.php3.02 ▲0.0232.39 ▲1.52

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Animate Your Content
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,817 ▲22117.06 ▲1.5417.14 ▲9.1447.74 ▼1.29
Dashboard /wp-admin2,966 ▲356.90 ▲0.98137.12 ▼5.32105.96 ▼15.04
Posts /wp-admin/edit.php2,762 ▲233.22 ▲0.5475.91 ▲14.7690.16 ▲2.64
Add New Post /wp-admin/post-new.php1,683 ▲1118.13 ▼0.73385.88 ▲15.46101.38 ▼8.47
Media Library /wp-admin/upload.php1,824 ▲145.58 ▲0.57163.41 ▲14.43122.01 ▲1.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 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/animate-your-content/plugin.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: animated, fly-in, animation, rotate, slide...

animate-your-content/plugin.php 92% from 13 tests

The principal PHP file in "Animate Your Content" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("animate-your-content.php" instead of "plugin.php")

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
No dangerous file extensions were detected150 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

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.12
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.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
No PNG images were found in this plugin