84% wp-sef-urls

Code Review | WP SEF Urls

WordPress plugin WP SEF Urls scored84%from 54 tests.

About plugin

  • Plugin page: wp-sef-urls
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 5, 2012
  • Latest release: Oct 5, 2012
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: santiaga (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,169 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.65ms] Passed 4 tests

Server-side resources used by WP SEF Urls
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0545.11 ▲5.54
Dashboard /wp-admin3.35 ▲0.0149.38 ▼14.82
Posts /wp-admin/edit.php3.45 ▲0.0953.03 ▲5.06
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.99 ▼6.37
Media Library /wp-admin/upload.php3.28 ▲0.0446.61 ▲12.75
WP SEF urls /wp-admin/options-general.php?page=wp_sefurls3.2436.86

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 10 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
wp_sefurls_date_structure
wp_sefurls_page_structure
db_upgraded
theysaidso_admin_options
wp_sefurls_author_structure
wp_sefurls_category_slug

Browser metrics Passed 4 tests

WP SEF Urls: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.22 ▼1.371.79 ▲0.0244.98 ▲2.73
Dashboard /wp-admin2,207 ▲185.80 ▲0.9099.53 ▼28.1941.22 ▼4.62
Posts /wp-admin/edit.php2,090 ▲12.01 ▲0.0136.77 ▼2.7832.92 ▼3.30
Add New Post /wp-admin/post-new.php1,536 ▲821.33 ▲3.01653.13 ▲38.9354.51 ▼11.57
Media Library /wp-admin/upload.php1,395 ▲74.13 ▼0.06110.65 ▲12.9748.29 ▲4.91
WP SEF urls /wp-admin/options-general.php?page=wp_sefurls8252.0526.3124.86

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 10 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • wp_sefurls_category_slug
    • theysaidso_admin_options
    • can_compress_scripts
    • wp_sefurls_date_structure
    • wp_sefurls_page_structure
    • wp_sefurls_author_structure
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-sef-urls/wp-sef-urls.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-sef-urls === )
  • Screenshots: Please add an image for screenshot #1 (**Settings** - Setting page.)
The official readme.txt might help

wp-sef-urls/wp-sef-urls.php Passed 13 tests

The main PHP script in "WP SEF Urls" version 0.1 is automatically included on every request by WordPress
41 characters long description:
Search Engine Friendly urls for Wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin59 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1152959

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions5
▷ Named functions5100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png26.48KB8.16KB▼ 69.17%