84% url-rewrite-analyzer

Code Review | Url Rewrite Analyzer

WordPress plugin Url Rewrite Analyzer scored84%from 54 tests.

About plugin

  • Plugin page: url-rewrite-analyzer
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0 or higher-6.2.1
  • WordPress version: 6.3.1
  • First release: May 16, 2021
  • Latest release: Jun 30, 2023
  • Number of updates: 39
  • Update frequency: every 19.9 days
  • Top authors: devloper00 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,691 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼9.15ms] Passed 4 tests

Analyzing server-side resources used by Url Rewrite Analyzer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.79 ▼4.74
Dashboard /wp-admin3.39 ▲0.0843.84 ▼6.97
Posts /wp-admin/edit.php3.50 ▲0.1444.22 ▼4.27
Add New Post /wp-admin/post-new.php5.99 ▲0.1080.78 ▼20.62
Media Library /wp-admin/upload.php3.31 ▲0.0837.29 ▼0.27
Url Rewrite Analyzer /wp-admin/tools.php?page=url-rewrite-analyzer3.5937.46

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Url Rewrite Analyzer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.24 ▼1.411.66 ▼0.1746.76 ▲2.97
Dashboard /wp-admin2,214 ▲235.84 ▲0.96101.04 ▼8.5456.97 ▲10.27
Posts /wp-admin/edit.php2,100 ▲112.03 ▲0.0335.97 ▼0.1154.20 ▲18.46
Add New Post /wp-admin/post-new.php1,524 ▲523.23 ▲0.04595.46 ▼84.7673.95 ▲18.02
Media Library /wp-admin/upload.php1,402 ▲144.22 ▲0.0896.52 ▼15.0564.98 ▲16.31
Url Rewrite Analyzer /wp-admin/tools.php?page=url-rewrite-analyzer6,0542.5833.96120.73

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/url-rewrite-analyzer/url-rewrite-analyzer.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/url-rewrite-analyzer/ui/url-rewrite-analyzer-old.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/url-rewrite-analyzer/ui/url-rewrite-analyzer.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Requires at least: Invalid plugin version format
You can look at the official readme.txt

url-rewrite-analyzer/url-rewrite-analyzer.php 92% from 13 tests

This is the main PHP file of "Url Rewrite Analyzer" version 1.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "5.0 or higher")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,315 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP58461619
CSS180486
JavaScript11718126
PO File1316784

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.17
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods27
▷ Static methods518.52%
▷ Public methods27100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin