90% copperx

Code Review | Cryptocurrency Payments & Donations with Copperx

WordPress plugin Cryptocurrency Payments & Donations with Copperx scored90%from 54 tests.

About plugin

  • Plugin page: copperx
  • Plugin version: 1.4.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 25, 2023
  • Latest release: Aug 16, 2023
  • Number of updates: 21
  • Update frequency: every 5.5 days
  • Top authors: copperxhq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /349 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.01MB] [CPU: ▼5.39ms] Passed 4 tests

Analyzing server-side resources used by Cryptocurrency Payments & Donations with Copperx
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.38 ▼2.27
Dashboard /wp-admin3.31 ▲0.0150.18 ▼0.66
Posts /wp-admin/edit.php3.36 ▲0.0152.56 ▼1.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.34 ▼16.88
Media Library /wp-admin/upload.php3.24 ▲0.0137.73 ▲0.39

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Cryptocurrency Payments & Donations with Copperx
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.25 ▼0.152.11 ▲0.3746.60 ▲0.82
Dashboard /wp-admin2,195 ▲155.61 ▼0.0597.40 ▲8.0241.33 ▼0.54
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0138.93 ▲1.4434.33 ▼2.17
Add New Post /wp-admin/post-new.php1,526 ▼023.69 ▲0.72677.86 ▼7.5165.21 ▲13.30
Media Library /wp-admin/upload.php1,400 ▲64.22 ▲0.0498.37 ▼6.3347.84 ▲1.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can take inspiration from this readme.txt

copperx/copperx.php Passed 13 tests

"Cryptocurrency Payments & Donations with Copperx" version 1.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
62 characters long description:
Accept crypto payments in just 5 minutes. (https://copperx.io)

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
Success! There were no dangerous files found in this plugin1,160 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP7210302819
CSS1440255
SVG70066
JavaScript13020

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity24.75
▷ Minimum class complexity1.00
▷ Maximum class complexity82.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods28
▷ Static methods828.57%
▷ Public methods2485.71%
▷ Protected methods27.14%
▷ Private methods27.14%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png2.93KB2.90KB▼ 0.93%