84% growthfunnel

Code Review | GrowthFunnel

WordPress plugin GrowthFunnel scored84%from 54 tests.

About plugin

  • Plugin page: growthfunnel
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 28, 2018
  • Latest release: Jul 3, 2018
  • Number of updates: 4
  • Update frequency: every 2.0 days
  • Top authors: growthfunnel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /684 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.47ms] Passed 4 tests

An overview of server-side resources used by GrowthFunnel
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.39 ▼8.36
Dashboard /wp-admin3.33 ▲0.0357.22 ▲5.04
Posts /wp-admin/edit.php3.38 ▲0.0253.85 ▲2.25
Add New Post /wp-admin/post-new.php5.91 ▲0.0298.58 ▼4.47
Media Library /wp-admin/upload.php3.25 ▲0.0239.03 ▲4.71

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

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

Browser metrics Passed 4 tests

Checking browser requirements for GrowthFunnel
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.28 ▼0.152.09 ▲0.1442.18 ▼0.19
Dashboard /wp-admin2,211 ▲315.62 ▼0.0294.77 ▲3.6439.13 ▼5.09
Posts /wp-admin/edit.php2,116 ▲132.02 ▲0.0739.39 ▼3.6737.67 ▼0.74
Add New Post /wp-admin/post-new.php1,539 ▲1323.56 ▲0.49676.19 ▲71.9352.87 ▲3.99
Media Library /wp-admin/upload.php1,416 ▲194.20 ▲0.0293.40 ▼5.8939.99 ▼5.37

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 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 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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/growthfunnel/gfsw.js.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (`/assets/screenshot-1.png`) image required
Please take inspiration from this readme.txt

growthfunnel/growthfunnel.php 92% from 13 tests

"GrowthFunnel" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected112 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP31962112

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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 files were detected