62% combo-wp-rewrite-slugs

Code Review | Combo WP Rewrite Slugs

WordPress plugin Combo WP Rewrite Slugs scored 62% from 54 tests.

About plugin

  • Plugin page: combo-wp-rewrite-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 10, 2018
  • Latest release: Oct 10, 2018
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: etwordpress01 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active / 1,158 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.77MB] [CPU: ▼26.13ms] Passed 4 tests

An overview of server-side resources used by Combo WP Rewrite Slugs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1247.56 ▲3.04
Dashboard /wp-admin3.18 ▼0.1332.42 ▼19.27
Posts /wp-admin/edit.php3.18 ▼0.1834.13 ▼13.61
Add New Post /wp-admin/post-new.php3.18 ▼2.7133.39 ▼67.72
Media Library /wp-admin/upload.php3.18 ▼0.0633.41 ▼3.93
Rewrite Slugs /wp-admin/tools.php?page=rewrite_settings3.1834.10

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Combo WP Rewrite Slugs
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.30 ▼1.351.78 ▼0.0942.14 ▼11.72
Dashboard /wp-admin2,217 ▲295.88 ▼0.01110.07 ▼3.2940.90 ▼5.57
Posts /wp-admin/edit.php2,100 ▲142.03 ▲0.0440.66 ▲2.2235.84 ▼0.73
Add New Post /wp-admin/post-new.php1,533 ▼118.32 ▼4.61619.50 ▼54.7152.79 ▲1.04
Media Library /wp-admin/upload.php1,402 ▲144.28 ▲0.0796.32 ▼13.6142.52 ▼4.46
Rewrite Slugs /wp-admin/tools.php?page=rewrite_settings8312.0126.6526.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=rewrite_settings
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/combo-wp-rewrite-slugs/config.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/combo-wp-rewrite-slugs/admin/partials/functions.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Requires at least: Version format is invalid
Please take inspiration from this readme.txt

combo-wp-rewrite-slugs/init.php 92% from 13 tests

The entry point to "Combo WP Rewrite Slugs" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("combo-wp-rewrite-slugs.php" instead of "init.php")

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
Good job! No executable or dangerous file extensions detected1,444 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS21813838
PHP12144551456
JavaScript23431150

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity1.38
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes00.00%
Methods26
▷ Static methods623.08%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/welcome/logo.png22.06KB3.77KB▼ 82.91%