84% turnclick

Code Review | TurnClick Embed Code for WordPress

WordPress plugin TurnClick Embed Code for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: turnclick
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Apr 29, 2017
  • Latest release: Apr 29, 2017
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: turnclick (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /678 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by TurnClick Embed Code for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.07 ▲1.59
Dashboard /wp-admin3.31 ▼0.0347.12 ▼20.31
Posts /wp-admin/edit.php3.36 ▲0.0147.74 ▲1.68
Add New Post /wp-admin/post-new.php5.91 ▲0.0380.28 ▼20.71
Media Library /wp-admin/upload.php3.23 ▲0.0135.13 ▼0.32
TurnClick Settings /wp-admin/options-general.php?page=turnclick3.2030.01

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by TurnClick Embed Code for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6214.73 ▲0.141.66 ▲0.0737.71 ▼2.33
Dashboard /wp-admin2,214 ▲325.86 ▼0.02106.96 ▲2.5037.25 ▼8.64
Posts /wp-admin/edit.php2,097 ▲82.00 ▲0.0240.69 ▲2.7334.86 ▲2.67
Add New Post /wp-admin/post-new.php1,608 ▲8723.67 ▲0.59657.96 ▲29.1251.27 ▼2.39
Media Library /wp-admin/upload.php1,396 ▲54.21 ▲0.0694.62 ▼3.6840.86 ▲0.13
TurnClick Settings /wp-admin/options-general.php?page=turnclick7902.0623.5926.64

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/turnclick/styles_and_scripts.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/turnclick/styles_and_scripts.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
5 plugin tags: personalization, turnclick, embed code, marketing, live page link

turnclick/turnclick.php Passed 13 tests

The primary PHP file in "TurnClick Embed Code for WordPress" version 1.0 is used by WordPress to initiate all plugin functionality
120 characters long description:
TurnClick's WordPress Plugin allows TurnClick users to automatically install the embed code on their WordPress websites.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected161 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP44739161

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin