90% behavior-flow

Code Review | Behavior Flow

WordPress plugin Behavior Flow scored90%from 54 tests.

About plugin

  • Plugin page: behavior-flow
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3
  • WordPress version: 6.3.1
  • First release: Sep 11, 2015
  • Latest release: Sep 11, 2015
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: julien731 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /993 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.59ms] Passed 4 tests

This is a short check of server-side resources used by Behavior Flow
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.15 ▼4.58
Dashboard /wp-admin3.33 ▲0.0349.74 ▼9.84
Posts /wp-admin/edit.php3.39 ▲0.0351.37 ▼2.18
Add New Post /wp-admin/post-new.php5.96 ▲0.07101.67 ▲0.65
Media Library /wp-admin/upload.php3.26 ▲0.0335.34 ▼1.74

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Behavior Flow
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.37 ▼0.291.78 ▼0.1040.50 ▼4.06
Dashboard /wp-admin2,206 ▲265.75 ▲0.1294.31 ▼5.3142.91 ▼0.14
Posts /wp-admin/edit.php2,108 ▲82.27 ▲0.3041.95 ▲6.1738.50 ▲1.11
Add New Post /wp-admin/post-new.php1,575 ▲4020.71 ▲2.45633.93 ▼43.5855.82 ▼9.83
Media Library /wp-admin/upload.php1,402 ▲84.42 ▲0.24103.81 ▲6.9147.92 ▲3.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: prerender, prerendering, performance, seo, conversion...

behavior-flow/behavior-flow.php 92% from 13 tests

Analyzing the main PHP file in "Behavior Flow" version 1.0
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Success! There were no dangerous files found in this plugin236 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP589175198
CSS20631
JavaScript2347

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods466.67%
▷ Protected methods00.00%
▷ Private methods233.33%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected