84% yoast-seo-fix-for-qtranslate

Code Review | Fix for Yoast SEO and qTranslate/qTranslateX

WordPress plugin Fix for Yoast SEO and qTranslate/qTranslateX scored84%from 54 tests.

About plugin

  • Plugin page: yoast-seo-fix-for...
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.3.1
  • WordPress version: 6.3.1
  • First release: Sep 18, 2013
  • Latest release: Oct 27, 2015
  • Number of updates: 16
  • Update frequency: every 48.0 days
  • Top authors: lupetalo (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

400+ active /15,741 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Fix for Yoast SEO and qTranslate/qTranslateX
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.91 ▲1.39
Dashboard /wp-admin3.31 ▲0.0148.03 ▲0.92
Posts /wp-admin/edit.php3.36 ▲0.0041.48 ▼3.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.86 ▼4.62
Media Library /wp-admin/upload.php3.23 ▲0.0035.30 ▲1.33

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Fix for Yoast SEO and qTranslate/qTranslateX
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.73 ▲0.351.95 ▼0.0243.91 ▼0.80
Dashboard /wp-admin2,209 ▲245.91 ▲0.8998.90 ▼41.2537.33 ▼3.00
Posts /wp-admin/edit.php2,071 ▼182.02 ▲0.0234.42 ▼1.0333.50 ▲1.59
Add New Post /wp-admin/post-new.php1,533 ▼923.04 ▲4.76597.94 ▼9.0361.97 ▲9.83
Media Library /wp-admin/upload.php1,379 ▼64.21 ▼0.0397.08 ▼3.7340.77 ▼0.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/yoast-seo-fix-for-qtranslate/fix_for_yoast_seo_and_qtranslate_qtranslatex.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: qtranslate, yoast

yoast-seo-fix-for-qtranslate/fix_for_yoast_seo_and_qtranslate_qtranslatex.php 92% from 13 tests

The primary PHP file in "Fix for Yoast SEO and qTranslate/qTranslateX" version 1.2.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("yoast-seo-fix-for-qtranslate.php" instead of "fix_for_yoast_seo_and_qtranslate_qtranslatex.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12912

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin