84% cd2-fullstory-integration

Code Review | fullstory WordPress reference integration

WordPress plugin fullstory WordPress reference integration scored 84% from 54 tests.

About plugin

  • Plugin page: cd2-fullstory-int...
  • Plugin version: 1.09
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7.0
  • WordPress version: 6.3.1
  • First release: Jun 21, 2017
  • Latest release: Feb 18, 2021
  • Number of updates: 18
  • Update frequency: every 74.3 days
  • Top authors: LewisCowles (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,738 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.32ms] Passed 4 tests

A check of server-side resources used by fullstory WordPress reference integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0350.95 ▼1.89
Dashboard /wp-admin3.32 ▲0.0246.43 ▼10.55
Posts /wp-admin/edit.php3.37 ▲0.0152.27 ▼4.74
Add New Post /wp-admin/post-new.php5.90 ▲0.01117.70 ▼16.09
Media Library /wp-admin/upload.php3.24 ▲0.0154.39 ▲7.85
FullStory /wp-admin/options-general.php?page=cd2-fullstory-wordpress-integration3.2144.70

Server storage [IO: ▲0.04MB] [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, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
fullstory_org_code
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by fullstory WordPress reference integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.16 ▼0.3480.37 ▲71.79125.49 ▼62.42
Dashboard /wp-admin2,204 ▲65.86 ▲0.82230.07 ▲61.06155.59 ▼111.78
Posts /wp-admin/edit.php2,072 ▼172.05 ▼0.0294.45 ▼36.57137.17 ▼7.86
Add New Post /wp-admin/post-new.php1,413 ▼1617.69 ▼5.321,010.51 ▲140.97173.65 ▲34.77
Media Library /wp-admin/upload.php1,389 ▲104.15 ▼0.01180.69 ▼18.08101.33 ▼27.90
FullStory /wp-admin/options-general.php?page=cd2-fullstory-wordpress-integration7652.0556.87653.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • fullstory_org_code
    • can_compress_scripts

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cd2-fullstory-integration/index.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
Please take inspiration from this readme.txt

cd2-fullstory-integration/index.php 92% from 13 tests

This is the main PHP file of "fullstory WordPress reference integration" version 1.09, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cd2-fullstory-integration.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin129 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP112796
JavaScript21333

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions9
▷ Named functions333.33%
▷ Anonymous functions666.67%
Constants1
▷ Global constants1100.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 images were found in this plugin