84% qtranslate-loves-wp-e-commerce

Code Review | qTranslate loves WPEC

WordPress plugin qTranslate loves WPEC scored84%from 54 tests.

About plugin

  • Plugin page: qtranslate-loves-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: May 30, 2013
  • Latest release: Feb 27, 2014
  • Number of updates: 6
  • Update frequency: every 45.5 days
  • Top authors: stereohero (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,321 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by qTranslate loves WPEC
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.57 ▼1.43
Dashboard /wp-admin3.32 ▲0.0147.48 ▼3.07
Posts /wp-admin/edit.php3.37 ▲0.0149.18 ▼3.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.80 ▼23.73
Media Library /wp-admin/upload.php3.24 ▲0.0136.01 ▼0.81

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for qTranslate loves WPEC
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.381.72 ▲0.1241.20 ▼10.68
Dashboard /wp-admin2,209 ▲215.89 ▲1.0399.98 ▼7.4540.22 ▼8.34
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0333.82 ▼8.2735.18 ▼1.91
Add New Post /wp-admin/post-new.php1,533 ▼123.11 ▲0.09649.18 ▲38.4051.51 ▲3.28
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.0998.25 ▼2.4041.82 ▲0.84

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qtranslate-loves-wp-e-commerce/qtloveswpec.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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
4 plugin tags: qtranslate, wp e-commerce, translation, wpec

qtranslate-loves-wp-e-commerce/qtloveswpec.php 92% from 13 tests

The main PHP file in "qTranslate loves WPEC" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("qtranslate-loves-wp-e-commerce.php" instead of "qtloveswpec.php")

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 detected7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP110267

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin