89% r3df-multisite-blog-slug-remover

Code Review | R3DF Multisite Blog Slug Remover

WordPress plugin R3DF Multisite Blog Slug Remover scored89%from 54 tests.

About plugin

  • Plugin page: r3df-multisite-bl...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2015
  • Latest release: Apr 10, 2015
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: r3df (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

20+ active /3,140 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by R3DF Multisite Blog Slug Remover
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.66 ▼5.74
Dashboard /wp-admin3.31 ▼0.0448.57 ▼12.69
Posts /wp-admin/edit.php3.36 ▲0.0043.95 ▼6.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.51 ▼18.94
Media Library /wp-admin/upload.php3.23 ▲0.0031.84 ▼5.05

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by R3DF Multisite Blog Slug Remover
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.67 ▲0.301.94 ▲0.2140.56 ▼3.45
Dashboard /wp-admin2,198 ▲215.51 ▼0.0284.63 ▼7.4237.24 ▼4.21
Posts /wp-admin/edit.php2,097 ▼62.02 ▲0.0935.82 ▼2.3633.80 ▲0.84
Add New Post /wp-admin/post-new.php1,531 ▲523.20 ▲0.15622.44 ▼43.5750.26 ▼1.49
Media Library /wp-admin/upload.php1,403 ▲124.21 ▲0.0295.76 ▼3.9845.31 ▼1.90

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can look at the official readme.txt

r3df-multisite-blog-slug-remover/r3df-mulstisite-blog-slug-remover.php 77% from 13 tests

The primary PHP file in "R3DF Multisite Blog Slug Remover" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path is invalid: folder "/lang/" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("r3df-multisite-blog-slug-remover.php" instead of "r3df-mulstisite-blog-slug-remover.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin103 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23180103

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.86
▷ Minimum method complexity2.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin