84% urlug

Code Review | autometa's URLUG

WordPress plugin autometa's URLUG scored84%from 54 tests.

About plugin

  • Plugin page: urlug
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9.2
  • WordPress version: 6.3.1
  • First release: Sep 22, 2016
  • Latest release: Jan 18, 2018
  • Number of updates: 14
  • Update frequency: every 34.5 days
  • Top authors: JorgeAmVF (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /485 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by autometa's URLUG
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.88 ▼2.89
Dashboard /wp-admin3.31 ▼0.0443.40 ▼17.95
Posts /wp-admin/edit.php3.36 ▲0.0047.27 ▲4.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.50 ▼11.49
Media Library /wp-admin/upload.php3.24 ▲0.0035.01 ▲2.50

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

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

Browser metrics Passed 4 tests

autometa's URLUG: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.24 ▼1.042.04 ▲0.0539.75 ▼11.24
Dashboard /wp-admin2,206 ▲154.82 ▼0.04102.49 ▼7.2439.49 ▼5.29
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0535.70 ▼1.2731.05 ▼3.75
Add New Post /wp-admin/post-new.php1,535 ▲223.30 ▲0.21677.97 ▼33.9352.85 ▼3.98
Media Library /wp-admin/upload.php1,391 ▲34.23 ▼0.0595.73 ▼0.0841.47 ▼3.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/urlug/urlug.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: metadata, shortcode, automation, slug, permalink

urlug/urlug.php Passed 13 tests

The main file in "autometa's URLUG" v. 2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
115 characters long description:
It reproduces slugs, permalinks and links of pages, posts, portfolios or products simply via: [urlug] and [urlink].

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 plugin17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172417

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued 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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin