94% 1clicksuite

Code Review | 1clicksuite

WordPress plugin 1clicksuite scored 94% from 54 tests.

About plugin

  • Plugin page: 1clicksuite
  • Plugin version: 1.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 5.9.2
  • First release: Aug 5, 2020
  • Latest release: Aug 14, 2020
  • Number of updates: 7
  • Update frequency: every 2.1 days
  • Top authors: infoalberghi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 381 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by 1clicksuite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0360.92 ▲2.73
Dashboard /wp-admin3.43 ▲0.0237.38 ▼19.00
Posts /wp-admin/edit.php3.66 ▲0.0258.63 ▲3.97
Add New Post /wp-admin/post-new.php6.90 ▼0.0798.19 ▼1,325.49
Media Library /wp-admin/upload.php3.31 ▲0.0233.93 ▲2.74

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by 1clicksuite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,797 ▲4315.29 ▼0.365.75 ▼0.362.87 ▼0.06
Dashboard /wp-admin2,892 ▲346.11 ▼0.09115.35 ▼24.56156.44 ▼9.91
Posts /wp-admin/edit.php2,694 ▲33.24 ▲0.0065.14 ▼20.05141.12 ▼3.17
Add New Post /wp-admin/post-new.php1,690 ▼2120.44 ▼0.92460.68 ▲8.82175.00 ▲14.43
Media Library /wp-admin/upload.php1,698 ▲35.50 ▼0.03147.81 ▲8.37190.84 ▲2.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/1clicksuite/1clicksuite-compatible.php
    • > /wp-content/plugins/1clicksuite/1click_scripts_style.php
    • > /wp-content/plugins/1clicksuite/1click_function.php

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: 1clicksuite, cf7

1clicksuite/1clicksuite-compatible.php 92% from 13 tests

This is the main PHP file of "1clicksuite" version 1.5, 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 ("1clicksuite.php" instead of "1clicksuite-compatible.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected107 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4261465
CSS1148942

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin