84% produck

Code Review | Customer Service to Content Marketing Converter by Produck

WordPress plugin Customer Service to Content Marketing Converter by Produck scored84%from 54 tests.

About plugin

  • Plugin page: produck
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.4.2
  • WordPress version: 6.3.1
  • First release: May 10, 2019
  • Latest release: Sep 4, 2020
  • Number of updates: 20
  • Update frequency: every 24.6 days
  • Top authors: monstec (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /664 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.30MB] [CPU: ▼0.64ms] Passed 4 tests

A check of server-side resources used by Customer Service to Content Marketing Converter by Produck
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3340.20 ▼0.72
Dashboard /wp-admin3.64 ▲0.3451.32 ▼3.29
Posts /wp-admin/edit.php3.70 ▲0.3454.42 ▲0.62
Add New Post /wp-admin/post-new.php6.16 ▲0.27101.15 ▲3.56
Media Library /wp-admin/upload.php3.51 ▲0.2742.86 ▲0.83
Produck /wp-admin/options-general.php?page=produck-settings3.4740.15

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 8 new options
New WordPress options
widget_my_custom_widget
widget_recent-comments
db_upgraded
produck_config
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Customer Service to Content Marketing Converter by Produck
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,934 ▲17313.65 ▼0.7311.22 ▲9.4041.43 ▼5.36
Dashboard /wp-admin2,200 ▲235.67 ▲0.0890.94 ▼2.8342.39 ▼3.26
Posts /wp-admin/edit.php2,113 ▲102.05 ▲0.0442.31 ▼0.4034.30 ▼1.65
Add New Post /wp-admin/post-new.php1,534 ▲823.28 ▲5.61647.13 ▼37.3551.97 ▲2.43
Media Library /wp-admin/upload.php1,410 ▲74.46 ▲0.2096.98 ▼8.5345.77 ▼0.90
Produck /wp-admin/options-general.php?page=produck-settings1,0192.0931.5929.82

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_my_custom_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 16× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/produck/vpage/templateloader.php
    • > /wp-content/plugins/produck/vpage/controller.php
    • > /wp-content/plugins/produck/gui/quackpagecontent.php
    • > /wp-content/plugins/produck/templates/quackdetail.php
    • > /wp-content/plugins/produck/templates/quacksoverview.php
    • > /wp-content/plugins/produck/vpage/page.php
    • > /wp-content/plugins/produck/uninstall.php
    • > /wp-content/plugins/produck/gui/chat.php
    • > /wp-content/plugins/produck/pluginadministration.php
    • > /wp-content/plugins/produck/gui/widget.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: social media marketing, chat, content marketing

produck/produck.php Passed 13 tests

The entry point to "Customer Service to Content Marketing Converter by Produck" version 1.1.0 is a PHP file that has certain tags in its header comment area
91 characters long description:
This plugin enables you to show Quacks in your shop and integrate the ProDuck Chat Service.

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
There were no executable files found in this plugin1,431 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP172702641,298
JavaScript32520129
CSS4094

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.24
Average class complexity11.54
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods87
▷ Static methods1719.54%
▷ Public methods8193.10%
▷ Protected methods00.00%
▷ Private methods66.90%
Functions11
▷ Named functions19.09%
▷ Anonymous functions1090.91%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/ducky.png10.70KB4.76KB▼ 55.47%