90% animation-block

Code Review | Animation Block

WordPress plugin Animation Block scored90%from 54 tests.

About plugin

  • Plugin page: animation-block
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2
  • WordPress version: 6.3.1
  • First release: Oct 19, 2018
  • Latest release: May 9, 2019
  • Number of updates: 8
  • Update frequency: every 25.8 days
  • Top authors: sketchbookkeeper (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /3,988 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.54ms] Passed 4 tests

A check of server-side resources used by Animation Block
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.01 ▼3.44
Dashboard /wp-admin3.31 ▼0.0343.38 ▼15.47
Posts /wp-admin/edit.php3.36 ▲0.0149.55 ▲0.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.30 ▼15.51
Media Library /wp-admin/upload.php3.24 ▲0.0132.96 ▲0.28

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

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

Browser metrics Passed 4 tests

Animation Block: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,956 ▲21021.98 ▲7.62149.52 ▲147.7468.86 ▲24.48
Dashboard /wp-admin2,209 ▲205.83 ▲0.8592.89 ▼28.8936.33 ▼9.01
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0340.17 ▲3.1635.47 ▲5.00
Add New Post /wp-admin/post-new.php6,182 ▲4,64919.46 ▼3.89873.84 ▲232.1038.36 ▼26.79
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.0294.51 ▼5.6942.96 ▼0.07

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: gutenberg, animation block, css animation, gutenberg block, animations...

animation-block/plugin.php 92% from 13 tests

The principal PHP file in "Animation Block" v. 1.0.2 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("animation-block.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected10,510 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JSON2007,105
CSS1249232,354
JavaScript13125295944
Sass39352
PHP294643
Markdown18012

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin