83% link-changer-htaccess-for-better-seo

Code Review | Link changer htaccess for better SEO

WordPress plugin Link changer htaccess for better SEO scored 83% from 54 tests.

About plugin

  • Plugin page: link-changer-htac...
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.2-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 15, 2020
  • Latest release: Jul 15, 2020
  • Number of updates: 5
  • Update frequency: every 2.8 days
  • Top authors: BArS (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 443 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
Installer ran successfully

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

This is a short check of server-side resources used by Link changer htaccess for better SEO
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0136.91 ▼4.48
Dashboard /wp-admin3.31 ▲0.0144.02 ▼1.22
Posts /wp-admin/edit.php3.36 ▲0.0048.44 ▲4.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.12 ▼18.42
Media Library /wp-admin/upload.php3.23 ▲0.0037.04 ▲2.07

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: 1 new table, 7 new options
New tables
wp_old_linky
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
link-changer-htaccess_db_version
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Link changer htaccess for better SEO: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5913.30 ▼1.241.66 ▼0.3240.87 ▼6.78
Dashboard /wp-admin2,222 ▲335.83 ▲0.8998.50 ▼22.1938.03 ▼5.00
Posts /wp-admin/edit.php2,108 ▲191.99 ▼0.0637.04 ▲0.4435.50 ▲2.05
Add New Post /wp-admin/post-new.php1,532 ▼1023.30 ▲5.08663.95 ▲16.8163.55 ▲3.54
Media Library /wp-admin/upload.php1,401 ▲164.23 ▼0.0096.09 ▼17.4843.94 ▼4.74

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

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
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 take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/link-changer-htaccess-for-better-seo/index.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/link-changer-htaccess-for-better-seo/index.php:125

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 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: slugs, cyr2lat, ukr2lat, seo, htaccess

link-changer-htaccess-for-better-seo/index.php 62% from 13 tests

The primary PHP file in "Link changer htaccess for better SEO" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "5.4.2")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("link-changer-htaccess-for-better-seo.php" instead of "index.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 237 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin133 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16234133

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin