84% cw-post-slugs

Code Review | CW Post Slugs

WordPress plugin CW Post Slugs scored84%from 54 tests.

About plugin

  • Plugin page: cw-post-slugs
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-4.1
  • WordPress version: 6.3.1
  • First release: Feb 15, 2013
  • Latest release: Dec 18, 2014
  • Number of updates: 3
  • Update frequency: every 223.7 days
  • Top authors: zulugrid (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /1,465 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.40ms] Passed 4 tests

Analyzing server-side resources used by CW Post Slugs
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.23 ▲0.20
Dashboard /wp-admin3.31 ▼0.0449.40 ▼18.50
Posts /wp-admin/edit.php3.36 ▲0.0048.91 ▼0.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.79 ▼9.69
Media Library /wp-admin/upload.php3.24 ▲0.0036.90 ▼0.93

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for CW Post Slugs
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.12 ▼0.291.69 ▼0.1943.20 ▼0.10
Dashboard /wp-admin2,198 ▲205.50 ▼0.1585.71 ▼28.4139.42 ▼7.77
Posts /wp-admin/edit.php2,103 ▲31.99 ▲0.0539.20 ▼1.1334.77 ▼0.55
Add New Post /wp-admin/post-new.php1,554 ▲1918.16 ▼0.06629.99 ▼10.9169.25 ▲0.18
Media Library /wp-admin/upload.php1,403 ▼04.20 ▲0.0199.84 ▲1.0940.70 ▼7.16

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cw-post-slugs/cw-post-slugs.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: slug, title

cw-post-slugs/cw-post-slugs.php Passed 13 tests

The main PHP file in "CW Post Slugs" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
88 characters long description:
Set the post slug to the WordPress recommended value, even if you've changed your title.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13136

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected