10% conductrics-webactions

Code Review | Conductrics Web Actions

WordPress plugin Conductrics Web Actions scored10%from 54 tests.

About plugin

  • Plugin page: conductrics-webac...
  • Plugin version: 0.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-3.7.1
  • WordPress version: 6.3.1
  • First release: May 13, 2013
  • Latest release: Mar 26, 2014
  • Number of updates: 16
  • Update frequency: every 19.9 days
  • Top authors: conductrics (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /986 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/conductrics-webactions/includes/wa-runtime.php+6
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.96MB] [CPU: ▼55.15ms] Passed 4 tests

This is a short check of server-side resources used by Conductrics Web Actions
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.02 ▼1.445.13 ▼38.13
Dashboard /wp-admin2.04 ▼1.265.70 ▼51.60
Posts /wp-admin/edit.php2.05 ▼1.317.38 ▼41.98
Add New Post /wp-admin/post-new.php2.05 ▼3.846.93 ▼88.87
Media Library /wp-admin/upload.php2.05 ▼1.185.62 ▼31.33
Conductrics Actions /wp-admin/options-general.php?page=conductrics-wa-settings2.056.02

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Conductrics Web Actions
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.78 ▲0.641.98 ▼0.0542.30 ▼3.59
Dashboard /wp-admin2,208 ▲315.71 ▼0.0189.28 ▼5.9642.65 ▲0.48
Posts /wp-admin/edit.php2,124 ▲242.10 ▼0.0337.96 ▼0.0236.35 ▲0.73
Add New Post /wp-admin/post-new.php6,240 ▲4,70918.90 ▼4.37955.39 ▲284.2153.05 ▼1.77
Media Library /wp-admin/upload.php1,424 ▲304.32 ▲0.06101.08 ▲1.5946.79 ▲2.03
Conductrics Actions /wp-admin/options-general.php?page=conductrics-wa-settings8452.2526.8831.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/conductrics-webactions/includes/wa-runtime.php+6
    Trying to access array offset on value of type bool
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=conductrics-wa-settings
    • > Notice in wp-content/plugins/conductrics-webactions/includes/wa-settings.php+273
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=conductrics-wa-settings
    • > Notice in wp-content/plugins/conductrics-webactions/includes/wa-settings.php+73
    Undefined index: owner
    • > GET request to /wp-admin/options-general.php?page=conductrics-wa-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=conductrics-wa-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/conductrics-webactions/includes/wa-settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/conductrics-webactions/includes/wa-runtime.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/conductrics-webactions/includes/wa-runtime.php:4

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)
There were no browser issues 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
7 plugin tags: analytics, split testing, experiments, targeting, multivariate...

conductrics-webactions/conductrics-webactions.php 92% from 13 tests

The main PHP script in "Conductrics Web Actions" version 0.3.5 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 153 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin688 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP32638342
JavaScript22918304
CSS11442

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity12.00
▷ Minimum class complexity11.00
▷ Maximum class complexity13.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.26MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-4.png35.60KB12.02KB▼ 66.24%
css/refresh-icon.png0.90KB0.94KB0.00%
assets/screenshot-1.png91.12KB30.34KB▼ 66.70%
assets/screenshot-2.png66.11KB21.71KB▼ 67.15%
assets/screenshot-3.png74.40KB25.81KB▼ 65.31%