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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼0.37ms] Passed 4 tests
Analyzing server-side resources used by Grid Element Trash
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 35.70 ▲0.48 |
Dashboard /wp-admin | 3.36 ▲0.05 | 52.53 ▲3.30 |
Posts /wp-admin/edit.php | 3.48 ▲0.11 | 45.31 ▲1.57 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 92.75 ▼3.39 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 34.12 ▼0.14 |
Trash /wp-admin/admin.php?page=settings-grid-element-trash | 3.25 | 29.49 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Grid Element Trash: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.33 ▼0.03 | 1.73 ▲0.20 | 37.25 ▲1.26 |
Dashboard /wp-admin | 2,195 ▲14 | 5.58 ▼0.11 | 82.80 ▼17.88 | 41.35 ▼0.99 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.03 | 35.90 ▲0.64 | 33.52 ▼2.56 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.56 ▲0.03 | 610.45 ▼47.96 | 44.27 ▼12.95 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.21 ▲0.03 | 94.65 ▲0.30 | 40.68 ▲0.17 |
Trash /wp-admin/admin.php?page=settings-grid-element-trash | 757 | 1.99 | 24.38 | 24.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 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 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/grid-element-trash/partials/settings-page-display.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'GridElementTrash\\Store' not found in wp-content/plugins/grid-element-trash/public-functions.php:9
- > PHP Notice
Undefined variable: containers in wp-content/plugins/grid-element-trash/partials/settings-page-display.php on line 23
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/grid-element-trash/partials/settings-page-display.php on line 56
- > PHP Notice
Undefined variable: reuseContainers in wp-content/plugins/grid-element-trash/partials/settings-page-display.php on line 40
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/grid-element-trash/partials/settings-page-display.php on line 23
- > PHP Notice
Undefined variable: meta_boxes in wp-content/plugins/grid-element-trash/partials/settings-page-display.php on line 56
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/grid-element-trash/partials/settings-page-display.php on line 40
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: extension, grid, trash
grid-element-trash/grid-element-trash.php Passed 13 tests
Analyzing the main PHP file in "Grid Element Trash" version 1.1.2
50 characters long description:
Extends Grid with a trash for containers and boxes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected301 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 69 | 111 | 277 |
JavaScript | 1 | 2 | 0 | 18 |
Markdown | 1 | 1 | 0 | 3 |
Sass | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 4.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.26% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin