90% dennisridder-qtx-seo

Code Review | qTranslate-X & Yoast SEO

WordPress plugin qTranslate-X & Yoast SEO scored90%from 54 tests.

About plugin

  • Plugin page: dennisridder-qtx-seo
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.4.1
  • WordPress version: 6.3.1
  • First release: Jan 25, 2016
  • Latest release: Jan 25, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: dennisridder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /7,287 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: ▼6.76ms] Passed 4 tests

This is a short check of server-side resources used by qTranslate-X & Yoast SEO
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.98 ▼0.68
Dashboard /wp-admin3.31 ▲0.0050.11 ▼3.60
Posts /wp-admin/edit.php3.36 ▲0.0050.36 ▼3.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.06 ▼18.82
Media Library /wp-admin/upload.php3.23 ▲0.0037.67 ▲2.05

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

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

Browser metrics Passed 4 tests

Checking browser requirements for qTranslate-X & Yoast SEO
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7913.57 ▼0.811.86 ▲0.2246.94 ▲2.63
Dashboard /wp-admin2,221 ▲184.82 ▼0.99111.46 ▼6.6739.75 ▼4.64
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0040.17 ▼2.6937.02 ▲0.88
Add New Post /wp-admin/post-new.php1,545 ▲1923.10 ▲5.57651.67 ▼19.4952.03 ▲0.52
Media Library /wp-admin/upload.php1,394 ▼64.20 ▲0.07100.28 ▼6.8643.73 ▼0.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: qtranslate-x, dennisridder, yoast seo

dennisridder-qtx-seo/dennisridder-qtx-seo.php 92% from 13 tests

This is the main PHP file of "qTranslate-X & Yoast SEO" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; 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
Good job! No executable or dangerous file extensions detected65 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript114143
PHP181122

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.75
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin