94% no-slug-conflicts-with-trash

Code Review | No Slug Conflicts with Trash

WordPress plugin No Slug Conflicts with Trash scored 94% from 54 tests.

About plugin

  • Plugin page: no-slug-conflicts...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 5.8.1
  • First release: Nov 26, 2013
  • Latest release: Jun 26, 2016
  • Number of updates: 13
  • Update frequency: every 72.5 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 3,165 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0032.88 ▼1.50
Dashboard /wp-admin3.06 ▲0.0047.77 ▼3.17
Posts /wp-admin/edit.php3.11 ▲0.0044.38 ▼3.63
Add New Post /wp-admin/post-new.php5.42 ▼0.0294.44 ▼565.91
Media Library /wp-admin/upload.php3.00 ▲0.0026.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.89 ▲0.368.82 ▲1.2449.55 ▲0.80
Dashboard /wp-admin2,973 ▲425.98 ▲0.06140.28 ▼39.69121.83 ▲0.73
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0167.21 ▼7.3194.54 ▼3.92
Add New Post /wp-admin/post-new.php1,683 ▲7918.76 ▼0.07365.86 ▼17.07120.78 ▲5.18
Media Library /wp-admin/upload.php1,807 ▲35.03 ▲0.02167.92 ▲19.88124.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:
LanguageFilesBlank linesComment linesLines of code
PHP5163396434
Bourne Shell17322
XML10014

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 code0.17
Average class complexity14.67
▷ Minimum class complexity2.00
▷ Maximum class complexity40.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods36
▷ Static methods411.11%
▷ Public methods3391.67%
▷ Protected methods12.78%
▷ Private methods25.56%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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