Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.86ms] Passed 4 tests
Analyzing server-side resources used by Background with Particle.js
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.09 ▼4.05 |
Dashboard /wp-admin | 3.39 ▲0.05 | 55.35 ▼14.74 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 48.25 ▼0.86 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 88.75 ▼7.79 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 39.73 ▲3.05 |
Additional Info /wp-admin/admin.php?page=theme-op-settings | 3.31 | 28.96 |
ParticleJS Banner /wp-admin/admin.php?page=particlejs-banner | 3.31 | 44.53 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Background with Particle.js
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲191 | 13.98 ▼0.42 | 11.52 ▲9.79 | 44.45 ▲1.90 |
Dashboard /wp-admin | 2,248 ▲47 | 4.93 ▲0.00 | 114.70 ▼2.68 | 41.21 ▼2.13 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.05 ▲0.05 | 35.83 ▼2.26 | 33.37 ▼0.72 |
Add New Post /wp-admin/post-new.php | 1,549 ▲18 | 23.15 ▼0.27 | 673.92 ▼26.75 | 59.63 ▲9.18 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.22 ▲0.01 | 106.97 ▲4.92 | 44.78 ▼1.37 |
Additional Info /wp-admin/admin.php?page=theme-op-settings | 938 | 2.04 | 23.23 | 32.54 |
ParticleJS Banner /wp-admin/admin.php?page=particlejs-banner | 1,344 | 1.72 | 25.44 | 34.13 |
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
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
Please take a closer look at the following
- 8× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/background-particle-js/settings/options.php
- > /wp-content/plugins/background-particle-js/shortcode.php
- > /wp-content/plugins/background-particle-js/index.php
- > /wp-content/plugins/background-particle-js/particle.php
- > /wp-content/plugins/background-particle-js/settings/main-navigation.php
- > /wp-content/plugins/background-particle-js/settings/submenu-settings.php
- > /wp-content/plugins/background-particle-js/config/init.php
- > /wp-content/plugins/background-particle-js/settings/menu-settings.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/background-particle-js/particle-page.php:5
- > PHP Fatal error
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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
background-particle-js/particle.php 92% from 13 tests
This is the main PHP file of "Background with Particle.js" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("background-particle-js.php" instead of "particle.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin469 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 101 | 86 | 402 |
CSS | 2 | 8 | 0 | 38 |
JavaScript | 3 | 6 | 0 | 29 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 4 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 20.00% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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