89% particles-block

Code Review | Particle Animation Block

WordPress plugin Particle Animation Block scored89%from 54 tests.

About plugin

  • Plugin page: particles-block
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 6.3.1
  • First release: Dec 3, 2020
  • Latest release: Dec 3, 2020
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: middlewayapproach (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,115 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.27ms] Passed 4 tests

Server-side resources used by Particle Animation Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.68 ▼3.23
Dashboard /wp-admin3.32 ▲0.0148.88 ▼3.14
Posts /wp-admin/edit.php3.37 ▲0.0149.56 ▼0.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.07 ▼1.11
Media Library /wp-admin/upload.php3.24 ▲0.0133.47 ▼1.61

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Particle Animation Block
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.35 ▼0.012.13 ▲0.1643.19 ▲2.11
Dashboard /wp-admin2,198 ▲245.61 ▲0.0591.08 ▼11.3840.47 ▼4.70
Posts /wp-admin/edit.php2,100 ▲31.99 ▼0.0140.32 ▲3.4834.35 ▼2.22
Add New Post /wp-admin/post-new.php6,197 ▲4,66919.18 ▼3.88851.44 ▲215.2357.32 ▲8.41
Media Library /wp-admin/upload.php1,394 ▼64.20 ▼0.0595.56 ▼13.0441.51 ▼5.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

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

This is the main PHP file of "Particle Animation Block" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("particles-block.php" instead of "plugin.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 plugin7,878 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JSON3007,601
JavaScript101954221
PHP2135154
Markdown1102

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected