10% gp-integration

Code Review | GP Integration

WordPress plugin GP Integration scored 10% from 54 tests.

About plugin

  • Plugin page: gp-integration
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.2
  • WordPress version: 6.3.1
  • First release: Jan 28, 2015
  • Latest release: Apr 17, 2023
  • Number of updates: 46
  • Update frequency: every 65.2 days
  • Top authors: GregRoss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,794 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/gp-integration/ToolStack-WP-Utilities.class.php+309
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Server metrics [RAM: ▼1.65MB] [CPU: ▼55.23ms] Passed 4 tests

This is a short check of server-side resources used by GP Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.34 ▼1.126.44 ▼35.79
Dashboard /wp-admin2.36 ▼0.956.89 ▼38.39
Posts /wp-admin/edit.php2.36 ▼1.007.65 ▼44.84
Add New Post /wp-admin/post-new.php2.36 ▼3.536.42 ▼101.88
Media Library /wp-admin/upload.php2.36 ▼0.876.64 ▼27.31
Translation Set Management /wp-admin/admin.php?page=gpi_translation_sets2.366.47
Settings /wp-admin/admin.php?page=gpi_settings2.366.35
GlotPress /wp-admin/admin.php?page=gp-integration/gp-integration.php2.367.31
Project Management /wp-admin/admin.php?page=gpi_projects2.367.83
Admin Users /wp-admin/admin.php?page=gpi_admin_users2.366.78

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
gp_integration_plugin_version
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
gp_integration
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for GP Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲8413.53 ▼0.871.57 ▼0.7036.45 ▼17.40
Dashboard /wp-admin2,247 ▲594.88 ▼0.97108.18 ▲10.8244.18 ▼3.90
Posts /wp-admin/edit.php2,130 ▲381.99 ▼0.0140.18 ▼4.2833.90 ▼1.24
Add New Post /wp-admin/post-new.php1,561 ▲1923.31 ▲5.20666.74 ▲76.4258.87 ▲6.64
Media Library /wp-admin/upload.php1,423 ▲354.40 ▲0.2095.93 ▼5.5440.86 ▼4.58
Translation Set Management /wp-admin/admin.php?page=gpi_translation_sets8792.1025.9928.85
Settings /wp-admin/admin.php?page=gpi_settings1,0392.0131.6337.27
GlotPress /wp-admin/admin.php?page=gp-integration/gp-integration.php8311.8923.4533.02
Project Management /wp-admin/admin.php?page=gpi_projects8472.0624.2126.32
Admin Users /wp-admin/admin.php?page=gpi_admin_users8612.0523.5026.76

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
These items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/gp-integration/ToolStack-WP-Utilities.class.php+309
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • theysaidso_admin_options
    • gp_integration_plugin_version
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • gp_integration
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 35 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gpi_admin_users
    • > Warning in wp-content/plugins/gp-integration/ToolStack-WP-Utilities.class.php+360
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gpi_admin_users
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gpi_admin_users
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/gp-integration/ToolStack-WP-Utilities.class.php on line 341
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/gp-integration/ToolStack-WP-Utilities.class.php on line 340
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/gp-integration/ToolStack-WP-Utilities.class.php on line 341
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/gp-integration/ToolStack-WP-Utilities.class.php on line 360
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/gp-integration/ToolStack-WP-Utilities.class.php on line 349
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/gp-integration/ToolStack-WP-Utilities.class.php on line 349
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/gp-integration/ToolStack-WP-Utilities.class.php on line 309
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/gp-integration/ToolStack-WP-Utilities.class.php on line 326
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/gp-integration/ToolStack-WP-Utilities.class.php on line 317
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/gp-integration/ToolStack-WP-Utilities.class.php on line 309

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=gp-integration/gp-integration.php
    • > Network (severe)
    wp-content/plugins/gp-integration/gp - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 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
2 plugin tags: admin, glotpress

gp-integration/gp-integration.php Passed 13 tests

The entry point to "GP Integration" version 1.5 is a PHP file that has certain tags in its header comment area
54 characters long description:
A fully integrated version of GlotPress for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected3,152 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP65401332,849
CSS31825303

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity24.67
▷ Minimum class complexity7.00
▷ Maximum class complexity59.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods40
▷ Static methods615.00%
▷ Public methods3997.50%
▷ Protected methods00.00%
▷ Private methods12.50%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo-250.png6.21KB3.53KB▼ 43.12%