73% cryptocurrencychart

Code Review | CryptoCurrencyChart

WordPress plugin CryptoCurrencyChart scored 73% from 54 tests.

About plugin

  • Plugin page: cryptocurrencychart
  • Plugin version: 1.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.2-5.3
  • WordPress version: 6.3.1
  • First release: Jan 24, 2020
  • Latest release: Jan 24, 2020
  • Number of updates: 5
  • Update frequency: every 42.4 days
  • Top authors: cryptocurrencychartcom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 4,093 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by CryptoCurrencyChart
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1739.32 ▼12.16
Dashboard /wp-admin3.48 ▲0.1849.09 ▼2.04
Posts /wp-admin/edit.php3.60 ▲0.2448.64 ▼3.49
Add New Post /wp-admin/post-new.php6.08 ▲0.2096.45 ▼6.60
Media Library /wp-admin/upload.php3.41 ▲0.1839.26 ▲5.90
CryptoCurrencyChart /wp-admin/options-general.php?page=crypto-currency-chart3.3832.51

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 37 new files
Database: 1 new table, 7 new options
New tables
wp_ccc_request_cache
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_cryptocurrencychart_price
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for CryptoCurrencyChart
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲5513.69 ▼0.981.51 ▼0.4238.76 ▼2.83
Dashboard /wp-admin2,230 ▲395.10 ▼0.81100.54 ▼8.5641.20 ▼1.50
Posts /wp-admin/edit.php2,115 ▲232.29 ▲0.3236.47 ▼3.2030.85 ▼4.07
Add New Post /wp-admin/post-new.php1,537 ▲417.93 ▼5.16654.90 ▲65.6654.89 ▼0.03
Media Library /wp-admin/upload.php1,415 ▲304.35 ▲0.0597.22 ▲2.6443.29 ▼0.95
CryptoCurrencyChart /wp-admin/options-general.php?page=crypto-currency-chart8611.8826.2825.17

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
It is recommended to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_ccc_request_cache
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_cryptocurrencychart_price

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CryptoCurrencyChart\\API\\Exception\\Exception' not found in wp-content/plugins/cryptocurrencychart/library/api/src/CryptoCurrencyChart/API/Exception/InvalidParameterException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'CryptoCurrencyChart\\API\\Struct\\Struct' not found in wp-content/plugins/cryptocurrencychart/library/api/src/CryptoCurrencyChart/API/Struct/HistoryData.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'CryptoCurrencyChart\\API\\Struct\\Struct' not found in wp-content/plugins/cryptocurrencychart/library/api/src/CryptoCurrencyChart/API/Struct/Coins.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'CryptoCurrencyChart\\API\\Struct\\Struct' not found in wp-content/plugins/cryptocurrencychart/library/api/src/CryptoCurrencyChart/API/Struct/DataTypes.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'CryptoCurrencyChart\\API\\Exception\\Exception' not found in wp-content/plugins/cryptocurrencychart/library/api/src/CryptoCurrencyChart/API/Exception/UnauthorizedRequestException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'CryptoCurrencyChart\\API\\Exception\\Exception' not found in wp-content/plugins/cryptocurrencychart/library/api/src/CryptoCurrencyChart/API/Exception/UnknownException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'CryptoCurrencyChart\\API\\Exception\\Exception' not found in wp-content/plugins/cryptocurrencychart/library/api/src/CryptoCurrencyChart/API/Exception/InvalidResponseException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'CryptoCurrencyChart\\API\\Struct\\Struct' not found in wp-content/plugins/cryptocurrencychart/library/api/src/CryptoCurrencyChart/API/Struct/BaseCurrencies.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'CryptoCurrencyChart\\API\\Struct\\Struct' not found in wp-content/plugins/cryptocurrencychart/library/api/src/CryptoCurrencyChart/API/Struct/Coin.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'CryptoCurrencyChart\\API\\Struct\\Struct' not found in wp-content/plugins/cryptocurrencychart/library/api/src/CryptoCurrencyChart/API/Struct/CoinHistory.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues 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
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

cryptocurrencychart/cryptocurrencychart.php 77% from 13 tests

"CryptoCurrencyChart" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Requires PHP: Required version must match the one declared in readme.txt ("7.2" instead of "7.3")
  • Requires at least: Required version must match the one declared in readme.txt ("5.3" instead of "5.2.2")
  • Description: Keep the plugin description shorter than 140 characters (currently 169 characters long)

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
There were no executable files found in this plugin1,091 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP25234113990
CSS37051
JSON10028
Markdown15015
JavaScript2217

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity6.57
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces10
Interfaces0
Traits0
Classes23
▷ Abstract classes28.70%
▷ Concrete classes2191.30%
▷ Final classes00.00%
Methods54
▷ Static methods712.96%
▷ Public methods4277.78%
▷ Protected methods1222.22%
▷ Private methods00.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants22
▷ Global constants00.00%
▷ Class constants22100.00%
▷ Public constants1568.18%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin