10% coderlift-affiliate-compliance

Code Review | Coderlift Affiliate Compliance

WordPress plugin Coderlift Affiliate Compliance scored10%from 54 tests.

About plugin

  • Plugin page: coderlift-affilia...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Aug 8, 2020
  • Latest release: Aug 8, 2020
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: coderlift (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /374 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/coderlift-affiliate-compliance/cl-affiliate-compliance.php+20
    define(): Declaration of case-insensitive constants is deprecated

Server metrics [RAM: ▼1.94MB] [CPU: ▼62.95ms] Passed 4 tests

An overview of server-side resources used by Coderlift Affiliate Compliance
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.419.45 ▼28.40
Dashboard /wp-admin2.08 ▼1.275.68 ▼55.35
Posts /wp-admin/edit.php2.08 ▼1.286.43 ▼70.37
Add New Post /wp-admin/post-new.php2.08 ▼3.815.90 ▼96.66
Media Library /wp-admin/upload.php2.08 ▼1.155.77 ▼29.40
CL Affiliate Compliance /wp-admin/options-general.php?page=cl-aff-comp2.085.31

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Coderlift Affiliate Compliance
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲14413.60 ▼0.775.13 ▲3.3845.46 ▲4.84
Dashboard /wp-admin2,216 ▲254.87 ▼1.03101.70 ▼2.3938.22 ▼6.36
Posts /wp-admin/edit.php2,096 ▲42.01 ▲0.0333.35 ▼7.5631.16 ▼6.47
Add New Post /wp-admin/post-new.php1,544 ▲723.28 ▲4.90688.29 ▲15.8853.81 ▼4.28
Media Library /wp-admin/upload.php1,392 ▲44.22 ▼0.0698.06 ▼11.6640.18 ▼8.59
CL Affiliate Compliance /wp-admin/options-general.php?page=cl-aff-comp1,4996.70132.8359.16

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/coderlift-affiliate-compliance/cl-affiliate-compliance.php+20
    define(): Declaration of case-insensitive constants is deprecated
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=cl-aff-comp
    • > Deprecated in wp-content/plugins/coderlift-affiliate-compliance/cl-affiliate-compliance.php+20
    define(): Declaration of case-insensitive constants is deprecated

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 items
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/coderlift-affiliate-compliance/cl-aff-comp-settings.php
    • > /wp-content/plugins/coderlift-affiliate-compliance/cl-affiliate-compliance.php
    • > /wp-content/plugins/coderlift-affiliate-compliance/cl-aff-comp-admin-script.php
    • > /wp-content/plugins/coderlift-affiliate-compliance/cl-aff-comp-main-function.php

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 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (In this screenshot, point-1 is the settings menu of the plugin.) image not found
You can look at the official readme.txt

coderlift-affiliate-compliance/cl-affiliate-compliance.php 77% from 13 tests

"Coderlift Affiliate Compliance" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("coderlift-affiliate-compliance.php" instead of "cl-affiliate-compliance.php")
  • Domain Path: The domain path folder does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected187 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP47928179
CSS1018

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin