Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.66ms] Passed 4 tests
An overview of server-side resources used by Light Particles
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 39.76 ▼1.03 |
Dashboard /wp-admin | 3.35 ▼0.00 | 52.83 ▼13.37 |
Posts /wp-admin/edit.php | 3.47 ▲0.10 | 50.70 ▲2.62 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 83.51 ▼19.63 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.42 ▼0.61 |
Light Particles settings /wp-admin/options-general.php?page=wp_particles_settings | 3.26 | 36.74 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
wp_particles_opacity |
can_compress_scripts |
wp_particles_display_on |
widget_recent-posts |
wp_particles_quantity |
db_upgraded |
wp_particles_speed |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Light Particles
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,079 ▲292 | 15.24 ▲0.76 | 10.58 ▲8.63 | 41.28 ▼2.73 |
Dashboard /wp-admin | 2,341 ▲164 | 6.15 ▲0.63 | 118.64 ▲14.30 | 41.59 ▼3.14 |
Posts /wp-admin/edit.php | 2,266 ▲166 | 3.27 ▲1.32 | 51.59 ▲16.67 | 32.96 ▼1.97 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.35 ▲0.28 | 594.14 ▼106.75 | 32.56 ▼19.44 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.03 ▼0.21 | 83.89 ▼18.86 | 40.26 ▼4.68 |
Light Particles settings /wp-admin/options-general.php?page=wp_particles_settings | 1,037 | 3.07 | 40.21 | 52.60 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% 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 50% 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 fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/light-particles/light-particles.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/light-particles/views/settings.php:26
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: point, light, spark, disc, particle...
light-particles/light-particles.php 85% from 13 tests
This is the main PHP file of "Light Particles" version 1.02, 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:
- Domain Path: The domain path should be prefixed with a forward slash character ("/")
- Domain Path: Use only dashes and lowercase characters for the domain path ("")
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
Success! There were no dangerous files found in this plugin204 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 30 | 17 | 128 |
JavaScript | 1 | 17 | 11 | 68 |
CSS | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/save.png | 0.54KB | 0.39KB | ▼ 28.11% |
images/shop.png | 19.89KB | 7.40KB | ▼ 62.81% |
images/pro_version.png | 26.43KB | 9.33KB | ▼ 64.70% |