79% crypto-coupon-redeem

Code Review | CRYPTO / COUPON REDEEM

WordPress plugin CRYPTO / COUPON REDEEM scored79%from 54 tests.

About plugin

  • Plugin page: crypto-coupon-redeem
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 13, 2023
  • Latest release: Feb 13, 2023
  • Number of updates: 2
  • Update frequency: every 8.5 days
  • Top authors: antinoos2023 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /266 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼1.82ms] Passed 4 tests

Analyzing server-side resources used by CRYPTO / COUPON REDEEM
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1738.74 ▼1.03
Dashboard /wp-admin3.50 ▲0.1954.60 ▲6.38
Posts /wp-admin/edit.php3.62 ▲0.2547.59 ▲0.47
Add New Post /wp-admin/post-new.php6.08 ▲0.1979.57 ▼7.74
Media Library /wp-admin/upload.php3.40 ▲0.1735.98 ▲1.03
All Campaigns /wp-admin/edit.php?post_type=ccre-campaigns3.4738.48
Settings /wp-admin/edit.php?post_type=ccre-campaigns&page=ccre-settings3.4537.81

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
ccre_options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

CRYPTO / COUPON REDEEM: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,040 ▲27914.78 ▲0.185.59 ▲3.9244.20 ▲7.96
Dashboard /wp-admin2,363 ▲1856.15 ▲0.42111.29 ▲12.9742.93 ▼2.01
Posts /wp-admin/edit.php2,294 ▲1973.43 ▲1.4249.12 ▲9.2332.50 ▼2.79
Add New Post /wp-admin/post-new.php1,553 ▲2523.13 ▼0.32666.52 ▼48.5237.37 ▼26.29
Media Library /wp-admin/upload.php1,435 ▲324.13 ▼0.0678.67 ▼20.2743.72 ▼3.97
All Campaigns /wp-admin/edit.php?post_type=ccre-campaigns1,3443.5145.3628.23
Settings /wp-admin/edit.php?post_type=ccre-campaigns&page=ccre-settings1,3963.0243.0925.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • ccre_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=ccre-campaigns&page=ccre-settings
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/crypto-coupon-redeem/crypto-coupon-redeem.php:22

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 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
3 plugin tags: ridime, crypto, coupon

crypto-coupon-redeem/crypto-coupon-redeem.php Passed 13 tests

This is the main PHP file of "CRYPTO / COUPON REDEEM" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
22 characters long description:
CRYPTO / COUPON REDEEM

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,073 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP113471391,573
CSS311312
JavaScript35519188

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity35.00
▷ Minimum class complexity15.00
▷ Maximum class complexity55.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected