10% wp-url-extension

Code Review | WP URL Extension

WordPress plugin WP URL Extension scored 10% from 54 tests.

About plugin

  • Plugin page: wp-url-extension
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 4, 2019
  • Latest release: Jun 11, 2019
  • Number of updates: 8
  • Update frequency: every 8.6 days
  • Top authors: evilex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 713 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/wp-url-extension/class-url-extension.php+28
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.57ms] Passed 4 tests

Server-side resources used by WP URL Extension
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.42 ▲1.65
Dashboard /wp-admin3.31 ▲0.0049.57 ▲1.67
Posts /wp-admin/edit.php3.36 ▲0.0043.66 ▼5.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.71 ▼8.31
Media Library /wp-admin/upload.php3.23 ▲0.0035.35 ▼2.12

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP URL Extension
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.73 ▼0.831.76 ▼0.0242.90 ▼0.47
Dashboard /wp-admin2,203 ▲185.78 ▼0.0898.01 ▼21.7038.73 ▼7.78
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0236.24 ▲0.3833.97 ▲1.18
Add New Post /wp-admin/post-new.php1,542 ▼018.13 ▼0.05590.04 ▼51.9156.76 ▲2.63
Media Library /wp-admin/upload.php1,391 ▲34.21 ▼0.0193.12 ▼26.5243.40 ▼5.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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)
Good news, no errors were detected

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/wp-url-extension/wp-url-extension-settings.php on line 106

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% 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
No plugin tags provided

wp-url-extension/wp-url-extension.php 85% from 13 tests

The entry point to "WP URL Extension" version 0.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/wpue" does not exist
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected219 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33591219

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity14.50
▷ Minimum class complexity4.00
▷ Maximum class complexity25.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
No PNG files were detected