93% particle-background-wp

Code Review | Particle Background WP

WordPress plugin Particle Background WP scored 93% from 54 tests.

About plugin

  • Plugin page: particle-backgrou...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.0
  • WordPress version: 5.8.1
  • First release: Feb 10, 2018
  • Latest release: Mar 13, 2021
  • Number of updates: 14
  • Update frequency: every 80.9 days
  • Top authors: RyanNovotny (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

3,000+ active / 34,289 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼145.52ms] Passed 4 tests

An overview of server-side resources used by Particle Background WP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0429.88 ▼6.15
Dashboard /wp-admin3.10 ▲0.0440.79 ▼5.12
Posts /wp-admin/edit.php3.15 ▲0.0441.94 ▼4.14
Add New Post /wp-admin/post-new.php5.46 ▲0.0287.80 ▼564.13
Media Library /wp-admin/upload.php3.04 ▲0.0431.33 ▼6.68

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Particle Background WP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,696 ▲10016.35 ▲0.809.72 ▲0.6548.21 ▼0.73
Dashboard /wp-admin2,987 ▲565.88 ▼0.12149.58 ▼9.28107.68 ▼3.34
Posts /wp-admin/edit.php2,756 ▲172.73 ▲0.0268.15 ▲0.0593.40 ▲3.37
Add New Post /wp-admin/post-new.php1,512 ▼16018.57 ▼0.24390.17 ▼9.85111.07 ▲4.33
Media Library /wp-admin/upload.php1,824 ▲175.03 ▲0.01169.79 ▲13.18117.66 ▲2.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/particle-background-wp/plugin.php

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Default Setting), #2 (Admin screen)
You can look at the official readme.txt

particle-background-wp/plugin.php 85% from 13 tests

Analyzing the main PHP file in "Particle Background WP" version 2.0.0
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("particle-background-wp.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin509 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4168283
PHP14411180
CSS112146

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.33MB with 0.18MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png291.37KB148.93KB▼ 48.89%
screenshot-2.png45.10KB18.98KB▼ 57.90%