10% qtext-x-widget

Code Review | qText X Widget

WordPress plugin qText X Widget scored10%from 54 tests.

About plugin

  • Plugin page: qtext-x-widget
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Feb 25, 2015
  • Latest release: Feb 25, 2015
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: ThomasEgtvedt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,445 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/qtext-x-widget/qtext-x-widget.php+27
    Methods with the same name as their class will not be constructors in a future version of PHP; qTextxWidget has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼53.72ms] Passed 4 tests

Server-side resources used by qText X Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.394.85 ▼36.94
Dashboard /wp-admin2.10 ▼1.255.41 ▼53.60
Posts /wp-admin/edit.php2.10 ▼1.266.53 ▼41.60
Add New Post /wp-admin/post-new.php2.10 ▼3.795.26 ▼82.72
Media Library /wp-admin/upload.php2.10 ▼1.135.46 ▼26.72

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

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

Browser metrics Passed 4 tests

A check of browser resources used by qText X Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.191.68 ▼0.1546.94 ▲7.28
Dashboard /wp-admin2,206 ▲245.86 ▼0.01102.32 ▼11.1038.97 ▼4.25
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0139.94 ▼0.0535.74 ▼1.40
Add New Post /wp-admin/post-new.php1,533 ▲1223.27 ▼0.03682.93 ▲15.7959.24 ▲5.09
Media Library /wp-admin/upload.php1,388 ▲64.24 ▲0.0696.60 ▼0.5840.99 ▼0.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/qtext-x-widget/qtext-x-widget.php+27
    Methods with the same name as their class will not be constructors in a future version of PHP; qTextxWidget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • 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 everything seems fine, this is not 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/qtext-x-widget/qtext-x-widget.php:27

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: widget, admin, translation, language, multilingual...

qtext-x-widget/qtext-x-widget.php Passed 13 tests

"qText X Widget" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
44 characters long description:
Multilingual Text Widget For Wordpress 4.x.x

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected66 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP142566

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin