89% elite-crypto-checkout

Code Review | Elite crypto checkout

WordPress plugin Elite crypto checkout scored89%from 54 tests.

About plugin

  • Plugin page: elite-crypto-chec...
  • Plugin version: 1.4
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Mar 4, 2022
  • Latest release: Mar 9, 2022
  • Number of updates: 13
  • Update frequency: every 0.6 days
  • Top authors: codeies (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,110 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.93ms] Passed 4 tests

Server-side resources used by Elite crypto checkout
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0144.55 ▲2.33
Dashboard /wp-admin3.32 ▲0.0250.37 ▼0.18
Posts /wp-admin/edit.php3.37 ▲0.0164.51 ▲15.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.64 ▼17.15
Media Library /wp-admin/upload.php3.24 ▲0.0137.61 ▼0.71

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 181 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Elite crypto checkout
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.532.19 ▲0.4945.50 ▼0.03
Dashboard /wp-admin2,206 ▲185.90 ▲1.01120.37 ▲7.6448.21 ▲2.50
Posts /wp-admin/edit.php2,094 ▲52.04 ▼0.0144.41 ▲5.7335.79 ▲4.59
Add New Post /wp-admin/post-new.php1,533 ▲1923.10 ▲5.39729.94 ▲47.6363.07 ▼12.98
Media Library /wp-admin/upload.php1,382 ▼64.19 ▼0.01101.38 ▼8.2341.37 ▼3.72

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

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

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

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)
There were no browser issues found

Optimizations

Plugin configuration 93% 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
Attributes that require attention: You can look at the official readme.txt

elite-crypto-checkout/elite-crypto-checkout.php 92% from 13 tests

The primary PHP file in "Elite crypto checkout" version 1.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin31,166 lines of code in 131 files:
LanguageFilesBlank linesComment linesLines of code
PHP1147,36016,39630,699
Markdown1680214
JavaScript43862212
JSON10027
CSS110014

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity81.80
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.58
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes50
▷ Abstract classes24.00%
▷ Concrete classes4896.00%
▷ Final classes12.08%
Methods1,161
▷ Static methods17414.99%
▷ Public methods81670.28%
▷ Protected methods161.38%
▷ Private methods32928.34%
Functions96
▷ Named functions96100.00%
▷ Anonymous functions00.00%
Constants129
▷ Global constants10480.62%
▷ Class constants2519.38%
▷ Public constants25100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%