73% gozen-growth

Code Review | GoZen Growth

WordPress plugin GoZen Growth scored73%from 54 tests.

About plugin

  • Plugin page: gozen-growth
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.1-5.9
  • WordPress version: 6.3.1
  • First release: Apr 28, 2022
  • Latest release: Nov 3, 2022
  • Number of updates: 13
  • Update frequency: every 14.5 days
  • Top authors: optinlyhq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /450 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by GoZen Growth
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.29 ▼2.92
Dashboard /wp-admin3.31 ▲0.0046.71 ▼5.19
Posts /wp-admin/edit.php3.36 ▲0.0051.33 ▲1.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.47 ▼8.59
Media Library /wp-admin/upload.php3.23 ▲0.0036.93 ▲0.21

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

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

Browser metrics Passed 4 tests

GoZen Growth: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.121.94 ▲0.3139.51 ▼4.85
Dashboard /wp-admin2,192 ▲155.51 ▼0.1186.37 ▼5.9939.35 ▼1.32
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0650.66 ▲11.6142.12 ▲6.24
Add New Post /wp-admin/post-new.php1,526 ▼023.21 ▼0.43681.77 ▲40.3052.97 ▲5.78
Media Library /wp-admin/upload.php1,403 ▲34.26 ▲0.0297.70 ▼14.7242.43 ▼2.23

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_gozen_growth
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      require_once(): Failed opening required 'GOZENGROWTH_BAE_PATHpage/generalpage.php' (include_path='.:/usr/share/php') in wp-content/plugins/gozen-growth/API/api_endpoint/gozen_api.php on line 7
    • > PHP Warning
      Use of undefined constant GOZENGROWTH_BAE_PATH - assumed 'GOZENGROWTH_BAE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gozen-growth/API/api_key.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_environment_type() in wp-content/plugins/gozen-growth/API/env/env.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/gozen-growth/const_gz_vlu.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gozen-growth/maingozen.php:29
    • > PHP Warning
      Use of undefined constant GOZENGROWTH_BAE_PATH - assumed 'GOZENGROWTH_BAE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gozen-growth/API/api_endpoint/gozen_api.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'GOZENGROWTH_BAE_PATHAPI/api_secret.php' (include_path='.:/usr/share/php') in wp-content/plugins/gozen-growth/API/api_key.php on line 3
    • > PHP Warning
      require_once(GOZENGROWTH_BAE_PATHpage/generalpage.php): failed to open stream: No such file or directory in wp-content/plugins/gozen-growth/API/api_endpoint/gozen_api.php on line 7
    • > PHP Warning
      require_once(GOZENGROWTH_BAE_PATHAPI/api_secret.php): failed to open stream: No such file or directory in wp-content/plugins/gozen-growth/API/api_key.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

gozen-growth/maingozen.php 69% from 13 tests

The primary PHP file in "GoZen Growth" version 1.0.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gozen-growth.php" instead of "maingozen.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "4.6.1")
  • Domain Path: The domain path folder does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,359 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP22422535996
CSS13123258
JavaScript12118105

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity5.56
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity1.65
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods54
▷ Static methods2138.89%
▷ Public methods5194.44%
▷ Protected methods00.00%
▷ Private methods35.56%
Functions13
▷ Named functions1184.62%
▷ Anonymous functions215.38%
Constants16
▷ Global constants16100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin