94% auto-slug

Code Review | Auto-slug

WordPress plugin Auto-slug scored 94% from 54 tests.

About plugin

  • Plugin page: auto-slug
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.2
  • WordPress version: 5.8.1
  • First release: Jul 31, 2015
  • Latest release: Aug 1, 2015
  • Number of updates: 17
  • Update frequency: every 0.1 days
  • Top authors: num8er (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 1,614 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Server-side resources used by Auto-slug
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1232.84 ▲10.10
Dashboard /wp-admin3.06 ▲0.0146.51 ▲4.91
Posts /wp-admin/edit.php3.11 ▲0.0142.85 ▲3.90
Add New Post /wp-admin/post-new.php5.42 ▼0.0187.18 ▼558.55
Media Library /wp-admin/upload.php3.00 ▲0.0028.54 ▼2.74

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Auto-slug
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.77 ▲0.179.38 ▼2.3646.43 ▲1.83
Dashboard /wp-admin2,992 ▲585.95 ▼0.06126.33 ▼27.80104.61 ▼9.51
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0061.50 ▼6.8488.69 ▼3.01
Add New Post /wp-admin/post-new.php1,891 ▲27615.80 ▼5.64363.60 ▲88.67106.48 ▼1.52
Media Library /wp-admin/upload.php1,810 ▼05.01 ▼0.03148.03 ▼3.72114.91 ▲4.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-slug/auto-slug.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-slug/1.0/auto-slug.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Screenshots: Please describe screenshot #0 in auto-slug/assets to your readme.txt
The official readme.txt might help

auto-slug/auto-slug.php Passed 13 tests

The main file in "Auto-slug" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
Generate the post permalink while typing the title

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin121 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3284692
JavaScript13029

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin