83% altocloud-analytics-communications-for-woocommerce

Code Review | Altocloud Analytics & Communications

WordPress plugin Altocloud Analytics & Communications scored83%from 54 tests.

About plugin

  • Plugin page: altocloud-analyti...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4.5
  • WordPress version: 6.3.1
  • First release: Mar 14, 2015
  • Latest release: Sep 23, 2016
  • Number of updates: 9
  • Update frequency: every 62.2 days
  • Top authors: ismriv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,084 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Altocloud Analytics & Communications
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.95 ▼3.89
Dashboard /wp-admin3.31 ▼0.0344.87 ▼14.77
Posts /wp-admin/edit.php3.36 ▲0.0149.56 ▼3.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.45 ▼22.23
Media Library /wp-admin/upload.php3.24 ▲0.0137.80 ▲1.87

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Altocloud Analytics & Communications
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.191.64 ▲0.0142.26 ▲0.43
Dashboard /wp-admin2,198 ▲205.63 ▲0.0183.25 ▼25.8036.53 ▼9.10
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0037.31 ▼5.2435.66 ▼0.74
Add New Post /wp-admin/post-new.php1,535 ▲118.00 ▼0.02616.75 ▼25.4390.32 ▲24.07
Media Library /wp-admin/upload.php1,403 ▲64.19 ▲0.0399.96 ▼3.4141.76 ▼2.51

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/altocloud-analytics-communications-for-woocommerce/includes/class-wc-altocloud-integration.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === altocloud-analytics-communications-for-woocommerce === )
The official readme.txt is a good inspiration

altocloud-analytics-communications-for-woocommerce/woocommerce-altocloud-integration.php 85% from 13 tests

This is the main PHP file of "Altocloud Analytics & Communications" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 222 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("altocloud-analytics-communications-for-woocommerce.php" instead of "woocommerce-altocloud-integration.php")

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
There were no executable files found in this plugin309 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP280144309

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1285.71%
▷ Protected methods00.00%
▷ Private methods214.29%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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