89% particle-background

Code Review | Particle Background

WordPress plugin Particle Background scored89%from 54 tests.

About plugin

  • Plugin page: particle-background
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0.3
  • WordPress version: 6.3.1
  • First release: Sep 4, 2018
  • Latest release: Nov 1, 2022
  • Number of updates: 14
  • Update frequency: every 108.7 days
  • Top authors: aasthasolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /13,298 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
Install script ran successfully

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

An overview of server-side resources used by Particle Background
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.50 ▼3.66
Dashboard /wp-admin3.31 ▲0.0146.59 ▼2.20
Posts /wp-admin/edit.php3.37 ▲0.0147.98 ▼2.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.11 ▼15.89
Media Library /wp-admin/upload.php3.24 ▲0.0136.31 ▲1.90

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Particle Background
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲11313.40 ▼1.028.38 ▲6.4842.35 ▲1.15
Dashboard /wp-admin2,195 ▲185.61 ▼0.0185.68 ▼5.9635.74 ▼7.08
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0039.64 ▲2.9436.49 ▲1.22
Add New Post /wp-admin/post-new.php1,526 ▼223.03 ▲0.02693.35 ▼42.4861.01 ▲5.27
Media Library /wp-admin/upload.php1,400 ▲34.22 ▲0.0495.50 ▼8.1441.74 ▼2.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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
Attributes that require attention: Please take inspiration from this readme.txt

particle-background/particleground.php 85% from 13 tests

The main PHP script in "Particle Background" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("particle-background.php" instead of "particleground.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected119 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2151574
PHP2183628
CSS11017

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png44.65KB12.08KB▼ 72.94%