Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼145.06ms] Passed 4 tests
Server-side resources used by No Slug Conflicts with Trash
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 32.88 ▼1.50 |
Dashboard /wp-admin | 3.06 ▲0.00 | 47.77 ▼3.17 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 44.38 ▼3.63 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 94.44 ▼565.91 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 26.99 ▼7.54 |
Server storage [IO: ▲0.06MB] [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: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for No Slug Conflicts with Trash
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.89 ▲0.36 | 8.82 ▲1.24 | 49.55 ▲0.80 |
Dashboard /wp-admin | 2,973 ▲42 | 5.98 ▲0.06 | 140.28 ▼39.69 | 121.83 ▲0.73 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▲0.01 | 67.21 ▼7.31 | 94.54 ▼3.92 |
Add New Post /wp-admin/post-new.php | 1,683 ▲79 | 18.76 ▼0.07 | 365.86 ▼17.07 | 120.78 ▲5.18 |
Media Library /wp-admin/upload.php | 1,807 ▲3 | 5.03 ▲0.02 | 167.92 ▲19.88 | 124.16 ▼1.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/no-slug-conflicts-with-trash/tests/bootstrap.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: coffee2code, post_name, slug, trash, post
no-slug-conflicts-with-trash/no-slug-conflicts-with-trash.php 92% from 13 tests
The primary PHP file in "No Slug Conflicts with Trash" version 1.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 152 characters long)
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 plugin470 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 163 | 396 | 434 |
Bourne Shell | 1 | 7 | 3 | 22 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 14.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 4 | 11.11% |
▷ Public methods | 33 | 91.67% |
▷ Protected methods | 1 | 2.78% |
▷ Private methods | 2 | 5.56% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin