10% wp-seo-yoast-integration-mq-translate

Code Review | Integration of Yoast wordpress SEO module with mqtranslate module

WordPress plugin Integration of Yoast wordpress SEO module with mqtranslate module scored10%from 54 tests.

About plugin

  • Plugin page: wp-seo-yoast-inte...
  • Plugin version: 0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2014
  • Latest release: Jan 14, 2015
  • Number of updates: 17
  • Update frequency: every 4.5 days
  • Top authors: rufein (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /2,867 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/wp-seo-yoast-integration-mq-translate/wp-seo-yoast-integration-mqtranslate.php+29
    include_once(wp-content/plugins/wordpress-seo/wp-seo.php): failed to open stream: No such file or directory

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

Analyzing server-side resources used by Integration of Yoast wordpress SEO module with mqtranslate module
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.84 ▲1.71
Dashboard /wp-admin3.31 ▼0.0461.24 ▼9.97
Posts /wp-admin/edit.php3.36 ▲0.0047.77 ▼5.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.04 ▼13.53
Media Library /wp-admin/upload.php3.23 ▲0.0038.19 ▲1.73

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Integration of Yoast wordpress SEO module with mqtranslate module
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7914.74 ▲0.572.06 ▲0.0744.45 ▲0.75
Dashboard /wp-admin2,218 ▲155.84 ▲0.92113.06 ▲10.3742.83 ▼2.59
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0338.57 ▼3.9534.48 ▼2.06
Add New Post /wp-admin/post-new.php1,545 ▲523.13 ▼0.14680.44 ▲46.7852.21 ▼0.13
Media Library /wp-admin/upload.php1,400 ▼34.27 ▲0.00108.20 ▼0.8845.00 ▼4.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      include_once(wp-content/plugins/mqtranslate/mqtranslate.php): failed to open stream: No such file or directory in wp-content/plugins/wp-seo-yoast-integration-mq-translate/wp-seo-yoast-integration-mqtranslate.php on line 30
    • > PHP Warning
      include_once(wp-content/plugins/wordpress-seo/admin/class-metabox.php): failed to open stream: No such file or directory in wp-content/plugins/wp-seo-yoast-integration-mq-translate/wp-seo-yoast-integration-mqtranslate.php on line 33
    • > PHP Warning
      include_once(): Failed opening 'wp-content/plugins/wordpress-seo/admin/class-metabox.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-seo-yoast-integration-mq-translate/wp-seo-yoast-integration-mqtranslate.php on line 33
    • > PHP Warning
      include_once(wp-content/plugins/wordpress-seo/frontend/class-frontend.php): failed to open stream: No such file or directory in wp-content/plugins/wp-seo-yoast-integration-mq-translate/wp-seo-yoast-integration-mqtranslate.php on line 34
    • > PHP Warning
      include_once(): Failed opening 'wp-content/plugins/wordpress-seo/frontend/class-frontend.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-seo-yoast-integration-mq-translate/wp-seo-yoast-integration-mqtranslate.php on line 34
    • > PHP Warning
      include_once(): Failed opening 'wp-content/plugins/wordpress-seo/inc/class-wpseo-meta.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-seo-yoast-integration-mq-translate/wp-seo-yoast-integration-mqtranslate.php on line 32
    • > PHP Warning
      include_once(): Failed opening 'wp-content/plugins/wordpress-seo/wp-seo.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-seo-yoast-integration-mq-translate/wp-seo-yoast-integration-mqtranslate.php on line 29
    • > PHP Warning
      include_once(): Failed opening 'wp-content/plugins/mqtranslate/mqtranslate.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-seo-yoast-integration-mq-translate/wp-seo-yoast-integration-mqtranslate.php on line 30
    • > PHP Warning
      include_once(wp-content/plugins/wordpress-seo/inc/class-wpseo-meta.php): failed to open stream: No such file or directory in wp-content/plugins/wp-seo-yoast-integration-mq-translate/wp-seo-yoast-integration-mqtranslate.php on line 32
    • > PHP Warning
      include_once(wp-content/plugins/wordpress-seo/wp-seo.php): failed to open stream: No such file or directory in wp-content/plugins/wp-seo-yoast-integration-mq-translate/wp-seo-yoast-integration-mqtranslate.php on line 29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% 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 need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-seo-yoast-integration-mq-translate === )
  • Screenshots: Add an image for screenshot #1 (Panel administration of Wordpress Seo Integration.)
The official readme.txt might help

wp-seo-yoast-integration-mq-translate/wp-seo-yoast-integration-mqtranslate.php 92% from 13 tests

Analyzing the main PHP file in "Integration of Yoast wordpress SEO module with mqtranslate module" version 0.1.3
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-seo-yoast-integration-mq-translate.php" instead of "wp-seo-yoast-integration-mqtranslate.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,250 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP45225651,791
JavaScript18176340
CSS12014119

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity152.00
▷ Minimum class complexity53.00
▷ Maximum class complexity242.00
Average method complexity9.39
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods54
▷ Static methods11.85%
▷ Public methods4888.89%
▷ Protected methods00.00%
▷ Private methods611.11%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin