79% funnelflare

Code Review | FunnelFLARE

WordPress plugin FunnelFLARE scored79%from 54 tests.

About plugin

  • Plugin page: funnelflare
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.8.1
  • WordPress version: 6.3.1
  • First release: Jul 8, 2019
  • Latest release: Sep 11, 2021
  • Number of updates: 8
  • Update frequency: every 100.1 days
  • Top authors: jumpdemand (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /649 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.01MB] [CPU: ▼4.31ms] Passed 4 tests

Analyzing server-side resources used by FunnelFLARE
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.50 ▼0.50
Dashboard /wp-admin3.31 ▲0.0148.65 ▼1.11
Posts /wp-admin/edit.php3.36 ▲0.0147.10 ▼6.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.15 ▼9.48
Media Library /wp-admin/upload.php3.24 ▲0.0138.33 ▲1.08
FunnelFLARE /wp-admin/options-general.php?page=funnelflare_options3.1831.71

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by FunnelFLARE
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,101 ▲33015.04 ▲0.6543.38 ▲41.1843.16 ▼1.66
Dashboard /wp-admin2,210 ▲224.85 ▼0.03109.30 ▼0.2739.63 ▼1.58
Posts /wp-admin/edit.php2,093 ▲11.99 ▼0.0538.70 ▼2.7634.55 ▼3.18
Add New Post /wp-admin/post-new.php1,537 ▼523.53 ▲5.46699.62 ▲77.0556.67 ▼5.42
Media Library /wp-admin/upload.php1,392 ▲104.23 ▼0.0196.96 ▼4.1348.93 ▲5.46
FunnelFLARE /wp-admin/options-general.php?page=funnelflare_options8442.1928.8133.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=funnelflare_options
    • > Notice in wp-content/plugins/funnelflare/funnelflare.php+121
    Undefined variable: funnelflare_appkey

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/funnelflare/funnelflare.php:226

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
2 plugin tags: tracking script, plugin

funnelflare/funnelflare.php Passed 13 tests

The main PHP file in "FunnelFLARE" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
This integrates FunnelFLARE integration to your website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin167 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15312167

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/funnelflare.png15.89KB5.00KB▼ 68.53%
images/screenshot.png46.36KB18.17KB▼ 60.81%
images/favicon.png5.46KB2.81KB▼ 48.59%