84% mona-qtranslate-x-oembed-support

Code Review | Mona qTranslate X Oembed Support

WordPress plugin Mona qTranslate X Oembed Support scored84%from 54 tests.

About plugin

  • Plugin page: mona-qtranslate-x...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.6
  • WordPress version: 6.3.1
  • First release: Mar 27, 2019
  • Latest release: Mar 27, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: diancom1202 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /574 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Mona qTranslate X Oembed Support
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0133.51 ▼4.06
Dashboard /wp-admin3.31 ▲0.0146.01 ▼4.70
Posts /wp-admin/edit.php3.36 ▲0.0047.87 ▼2.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.81 ▼7.82
Media Library /wp-admin/upload.php3.23 ▲0.0036.64 ▲3.52

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Mona qTranslate X Oembed Support
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.31 ▼1.071.81 ▼0.0243.70 ▼1.13
Dashboard /wp-admin2,203 ▲124.85 ▼0.26113.24 ▲13.7541.10 ▼4.67
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.1140.97 ▲0.6834.45 ▼2.19
Add New Post /wp-admin/post-new.php1,533 ▼023.22 ▼0.44630.02 ▼48.6462.34 ▲0.75
Media Library /wp-admin/upload.php1,391 ▼04.10 ▼0.09101.58 ▼2.0742.39 ▼0.96

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/mona-qtranslate-x-oembed-support/mona-qtranslate-x-oembed-support.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 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: admin, qtranslate, bilingual, language, multilingual

mona-qtranslate-x-oembed-support/mona-qtranslate-x-oembed-support.php Passed 13 tests

The main PHP file in "Mona qTranslate X Oembed Support" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
38 characters long description:
Support for Wordpress Oembed Function.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected27 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191427

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin