84% clickdesigns

Code Review | ClickDesigns

WordPress plugin ClickDesigns scored84%from 54 tests.

About plugin

  • Plugin page: clickdesigns
  • Plugin version: 1.7.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 21, 2022
  • Latest release: Nov 21, 2023
  • Number of updates: 17
  • Update frequency: every 23.3 days
  • Top authors: 1clickdesigns (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,398 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.25MB] [CPU: ▼3.20ms] Passed 4 tests

An overview of server-side resources used by ClickDesigns
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2741.70 ▼1.98
Dashboard /wp-admin3.56 ▲0.2551.07 ▼8.08
Posts /wp-admin/edit.php3.68 ▲0.3150.45 ▲3.79
Add New Post /wp-admin/post-new.php6.14 ▲0.2586.75 ▼6.51
Media Library /wp-admin/upload.php3.46 ▲0.2337.12 ▲4.64

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for ClickDesigns
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,303 ▲54116.34 ▲2.0024.44 ▲22.6636.44 ▼7.76
Dashboard /wp-admin2,357 ▲1766.19 ▲0.52112.92 ▲10.36112.66 ▲68.34
Posts /wp-admin/edit.php2,285 ▲1823.69 ▲1.6853.22 ▲13.4065.79 ▲26.81
Add New Post /wp-admin/post-new.php1,703 ▲17322.59 ▼0.33669.35 ▲0.5037.17 ▼14.41
Media Library /wp-admin/upload.php1,425 ▲254.24 ▲0.0585.93 ▼12.09104.98 ▲62.91

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/clickdesigns/includes/clickdesigns-stetting-page.php:2

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: product bundles, covers, logos, reports, boxshots...

clickdesigns/clickdesigns.php 85% from 13 tests

The main PHP script in "ClickDesigns" version 1.7.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 166 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
Good job! No executable or dangerous file extensions detected9,559 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
SVG4517,539
PHP768192939
CSS3144754
JavaScript32325327

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity26.00
▷ Minimum class complexity1.00
▷ Maximum class complexity101.00
Average method complexity5.76
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/ClickDesigns-Logo.png2.49KB2.49KB0.04%
assets/images/ClickDesigns-Logo-small.png8.08KB3.33KB▼ 58.78%