90% integration-cmb2-qtranslate

Code Review | Integration-CMB2-qTranslate

WordPress plugin Integration-CMB2-qTranslate scored90%from 54 tests.

About plugin

  • Plugin page: integration-cmb2-...
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3
  • WordPress version: 6.3.1
  • First release: Sep 29, 2015
  • Latest release: Apr 16, 2016
  • Number of updates: 14
  • Update frequency: every 14.7 days
  • Top authors: jmarceli (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,221 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.00MB] [CPU: ▼5.51ms] Passed 4 tests

Analyzing server-side resources used by Integration-CMB2-qTranslate
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.06 ▼4.29
Dashboard /wp-admin3.32 ▼0.0351.05 ▼13.03
Posts /wp-admin/edit.php3.37 ▲0.0153.43 ▼1.64
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.42 ▼3.09
Media Library /wp-admin/upload.php3.24 ▲0.0137.04 ▼1.27

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Integration-CMB2-qTranslate
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4514.71 ▲0.761.57 ▼0.2440.39 ▼7.17
Dashboard /wp-admin2,191 ▲145.53 ▼0.0784.39 ▼7.1437.54 ▼1.17
Posts /wp-admin/edit.php2,099 ▼11.98 ▼0.0439.76 ▲2.7636.18 ▲0.01
Add New Post /wp-admin/post-new.php1,528 ▲223.28 ▲0.01597.83 ▼74.8253.48 ▼4.26
Media Library /wp-admin/upload.php1,405 ▲54.15 ▲0.0498.77 ▼19.3742.08 ▼9.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
4 plugin tags: qtranslatex, integration, qtranslate, cmb2

integration-cmb2-qtranslate/cmb2-qtranslate.php 92% from 13 tests

The main PHP file in "Integration-CMB2-qTranslate" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("integration-cmb2-qtranslate.php" instead of "cmb2-qtranslate.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin268 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33589167
JSON30065
PHP3186536

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin