78% grow-for-wp

Code Review | Grow for WordPress

WordPress plugin Grow for WordPress scored78%from 54 tests.

About plugin

  • Plugin page: grow-for-wp
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.2
  • WordPress version: 6.3.1
  • First release: Oct 18, 2023
  • Latest release: Oct 18, 2023
  • Number of updates: 6
  • Update frequency: every 2.7 days
  • Top authors: teamgrow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /37 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▲1.15ms] Passed 4 tests

This is a short check of server-side resources used by Grow for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1535.97 ▼0.04
Dashboard /wp-admin3.43 ▲0.1346.04 ▼3.83
Posts /wp-admin/edit.php3.48 ▲0.1347.42 ▲1.97
Add New Post /wp-admin/post-new.php6.02 ▲0.1398.72 ▲18.48
Media Library /wp-admin/upload.php3.35 ▲0.1336.07 ▲6.50

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Grow for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲5214.36 ▲0.121.95 ▲0.2238.56 ▼2.56
Dashboard /wp-admin2,223 ▲465.66 ▲0.0692.10 ▼9.4341.34 ▼1.00
Posts /wp-admin/edit.php2,124 ▲212.00 ▲0.0339.98 ▼0.6835.45 ▼0.06
Add New Post /wp-admin/post-new.php1,543 ▲1723.25 ▲0.20575.64 ▼69.7446.59 ▼14.39
Media Library /wp-admin/upload.php1,424 ▲244.20 ▼0.03104.78 ▲8.7646.13 ▲5.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% 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 0% 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 fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/grow-for-wp/inc/Grow/Views/admin-page-view.php
    • > /wp-content/plugins/grow-for-wp/constants.php
    • > /wp-content/plugins/grow-for-wp/grow-for-wp.php
  • 19× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Grow\\ContentResolverInterface' not found in wp-content/plugins/grow-for-wp/inc/Grow/GenericPostResolver.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Grow\\EnvironmentInterface' not found in wp-content/plugins/grow-for-wp/inc/Grow/Environment.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Grow\\HasWordpressHooksInterface' not found in wp-content/plugins/grow-for-wp/inc/Grow/Content.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Grow\\PluginConfigInterface' not found in wp-content/plugins/grow-for-wp/inc/Grow/PluginConfig.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Grow\\HasWordpressHooksInterface' not found in wp-content/plugins/grow-for-wp/inc/Grow/SettingsAPIController.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Grow\\WordPressLifecycleInterface' not found in wp-content/plugins/grow-for-wp/inc/Grow/WordPressLifecycle.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Grow\\OptionProviderInterface' not found in wp-content/plugins/grow-for-wp/inc/Grow/WordPress.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Grow\\HasWordpressHooksInterface' not found in wp-content/plugins/grow-for-wp/inc/Grow/AssetLoader.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Grow\\HookArgumentsInterface' not found in wp-content/plugins/grow-for-wp/inc/Grow/HookArguments.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Grow\\HookInterface' not found in wp-content/plugins/grow-for-wp/inc/Grow/Hook.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: A description for screenshot #4 is missing in grow-for-wp/assets to your readme.txt
Please take inspiration from this readme.txt

grow-for-wp/grow-for-wp.php Passed 13 tests

The main file in "Grow for WordPress" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
39 characters long description:
Integrate your WordPress Site with Grow

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
Good job! No executable or dangerous file extensions detected2,565 lines of code in 60 files:
LanguageFilesBlank linesComment linesLines of code
PHP505421,6172,079
TypeScript75117467
JavaScript10013
JSON1005
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.78
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces12
Traits1
Classes27
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes00.00%
Methods215
▷ Static methods6128.37%
▷ Public methods19389.77%
▷ Protected methods00.00%
▷ Private methods2210.23%
Functions14
▷ Named functions321.43%
▷ Anonymous functions1178.57%
Constants40
▷ Global constants410.00%
▷ Class constants3690.00%
▷ Public constants2363.89%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 0.88MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/dist/feature-mailerlite.1.0.0.png10.79KB5.63KB▼ 47.79%
assets/dist/feature-spotlight.1.0.0.png8.36KB4.42KB▼ 47.19%
assets/dist/feature-header-carousel.1.0.0.png27.46KB10.20KB▼ 62.86%
assets/dist/feature-bookmarks.1.0.0.png335.82KB96.58KB▼ 71.24%
assets/dist/feature-recipe-integration.1.0.0.png33.30KB12.08KB▼ 63.73%