90% fs-for-wp-fullstory-com-integration

Code Review | FS for WP - FullStory.com Integration

WordPress plugin FS for WP - FullStory.com Integration scored90%from 54 tests.

About plugin

  • Plugin page: fs-for-wp-fullsto...
  • Plugin version: 1.4.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 9, 2019
  • Latest release: Aug 4, 2023
  • Number of updates: 35
  • Update frequency: every 45.1 days
  • Top authors: vluongo (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /6,801 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
Installer ran successfully

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

An overview of server-side resources used by FS for WP - FullStory.com Integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.32 ▼11.05
Dashboard /wp-admin3.32 ▼0.0346.38 ▼21.70
Posts /wp-admin/edit.php3.37 ▲0.0152.61 ▼1.12
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.04 ▼8.98
Media Library /wp-admin/upload.php3.24 ▲0.0134.96 ▼1.48
FullStory Settings /wp-admin/options-general.php?page=fullstory-settings3.2133.45

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for FS for WP - FullStory.com Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.36 ▼0.321.73 ▼0.2439.25 ▼5.38
Dashboard /wp-admin2,196 ▲165.57 ▼0.1383.73 ▼10.7237.50 ▼6.14
Posts /wp-admin/edit.php2,101 ▼22.03 ▲0.0140.11 ▼0.5335.90 ▼1.62
Add New Post /wp-admin/post-new.php1,548 ▲1623.37 ▲0.31663.21 ▲42.0362.62 ▲7.05
Media Library /wp-admin/upload.php1,404 ▲14.27 ▼0.07109.18 ▲3.7150.32 ▲2.47
FullStory Settings /wp-admin/options-general.php?page=fullstory-settings8622.0322.7229.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: woocommerce fullstory integration, fullstorycom, fullstory integration, fullstory, full story

fs-for-wp-fullstory-com-integration/fullstory-com-integration.php 92% from 13 tests

"FS for WP - FullStory.com Integration" version 1.4.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fs-for-wp-fullstory-com-integration.php" instead of "fullstory-com-integration.php")

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 plugin119 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23411119

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin