Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.65ms] Passed 4 tests
This is a short check of server-side resources used by GN Product and Image Remover
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.56 ▼2.33 |
Dashboard /wp-admin | 3.31 ▲0.00 | 53.84 ▲1.68 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.05 ▲1.45 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.03 ▼3.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 42.28 ▲2.38 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GN Product and Image Remover
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.45 ▲0.02 | 1.88 ▼0.19 | 42.21 ▼1.73 |
Dashboard /wp-admin | 2,224 ▲21 | 4.83 ▼0.05 | 120.36 ▲12.32 | 39.23 ▼5.78 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.05 ▲0.00 | 37.67 ▼0.54 | 32.14 ▼7.14 |
Add New Post /wp-admin/post-new.php | 1,548 ▲3 | 23.31 ▲2.11 | 670.42 ▼66.79 | 60.30 ▼8.60 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.22 ▼0.08 | 125.04 ▲18.59 | 49.15 ▲0.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Requires php: Invalid version format
- Requires at least: Invalid version format
- Donate link: Please fix this invalid url: ""
gn-product-and-image-remover/gn-product-and-image-remover.php Passed 13 tests
Analyzing the main PHP file in "GN Product and Image Remover" version 1.0.0
106 characters long description:
Allows you to delete Woocommerce images after deleting product unless the image is used in another product
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
No dangerous file extensions were detected147 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 70 | 327 | 147 |
CSS | 1 | 0 | 3 | 0 |
JavaScript | 1 | 2 | 15 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 9 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 25.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected