84% crypto-exchange

Code Review | Cryptocurrency Exchange

WordPress plugin Cryptocurrency Exchange scored 84% from 54 tests.

About plugin

  • Plugin page: crypto-exchange
  • Plugin version: 1.15
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Apr 14, 2020
  • Latest release: Apr 20, 2020
  • Number of updates: 38
  • Update frequency: every 0.1 days
  • Top authors: alongoren (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

200+ active / 15,380 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by Cryptocurrency Exchange
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0046.95 ▲6.43
Dashboard /wp-admin3.31 ▲0.0144.34 ▼6.78
Posts /wp-admin/edit.php3.36 ▲0.0044.38 ▼2.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.32 ▲2.88
Media Library /wp-admin/upload.php3.23 ▲0.0037.36 ▲5.50

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cryptocurrency Exchange
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲11813.22 ▼1.181.89 ▼0.0143.53 ▲0.97
Dashboard /wp-admin2,263 ▲724.86 ▼0.01103.43 ▼11.4039.29 ▼2.55
Posts /wp-admin/edit.php2,143 ▲572.02 ▼0.1441.12 ▲7.4734.11 ▼0.46
Add New Post /wp-admin/post-new.php1,546 ▲1123.23 ▲0.12605.05 ▼93.9357.80 ▼5.82
Media Library /wp-admin/upload.php1,442 ▲514.23 ▲0.04103.68 ▲4.5945.05 ▼0.11

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/crypto-exchange/wpcryptoexchange.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

crypto-exchange/wpcryptoexchange.php 92% from 13 tests

The main PHP file in "Cryptocurrency Exchange" ver. 1.15 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("crypto-exchange.php" instead of "wpcryptoexchange.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected50 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP113950

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin