78% cryptocurrency-coins-list-price-list-ticker-icos

Code Review | Cryptocurrency - Coins List, Price List, Ticker & ICOs

WordPress plugin Cryptocurrency - Coins List, Price List, Ticker & ICOs scored 78% from 54 tests.

About plugin

  • Plugin page: cryptocurrency-co...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.3
  • WordPress version: 6.3.1
  • First release: Feb 13, 2020
  • Latest release: Feb 14, 2020
  • Number of updates: 11
  • Update frequency: every 0.5 days
  • Top authors: inqsys (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 6,465 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.25MB] [CPU: ▼3.26ms] Passed 4 tests

This is a short check of server-side resources used by Cryptocurrency - Coins List, Price List, Ticker & ICOs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2750.66 ▲3.94
Dashboard /wp-admin3.54 ▲0.2446.70 ▼4.17
Posts /wp-admin/edit.php3.65 ▲0.3045.97 ▼1.91
Add New Post /wp-admin/post-new.php6.13 ▲0.2488.39 ▼8.90
Media Library /wp-admin/upload.php3.46 ▲0.2435.24 ▲1.94
Add New /wp-admin/post-new.php?post_type=crypto_clpti_post3.5144.89
All Cryptocurrency /wp-admin/edit.php?post_type=crypto_clpti_post3.5141.83

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 654 new files
Database: 1 new table, 7 new options
New tables
wp_crypto_clpti
New WordPress options
wp_crypto_clpti_db_version
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cryptocurrency - Coins List, Price List, Ticker & ICOs
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲17413.76 ▼1.027.73 ▲5.9244.27 ▲4.26
Dashboard /wp-admin2,236 ▲485.91 ▲1.05109.80 ▼7.0485.08 ▲38.42
Posts /wp-admin/edit.php2,122 ▲332.04 ▲0.0138.32 ▼1.2033.98 ▼0.61
Add New Post /wp-admin/post-new.php1,556 ▲2323.28 ▲0.08764.57 ▲55.6860.80 ▲5.69
Media Library /wp-admin/upload.php1,412 ▲274.21 ▲0.07104.48 ▼13.4074.73 ▲27.04
Add New /wp-admin/post-new.php?post_type=crypto_clpti_post1,4712.8659.9260.95
All Cryptocurrency /wp-admin/edit.php?post_type=crypto_clpti_post1,1242.3238.4428.88

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • wp_crypto_clpti_db_version
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/cryptocurrency-coins-list-price-list-ticker-icos/cryptocurrency-coins-list-price-list-ticker-icos.php
  • 42× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/cryptocurrency-coins-list-price-list-ticker-icos/includes/clpti-settings.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/cryptocurrency-coins-list-price-list-ticker-icos/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Select' not found in wp-content/plugins/cryptocurrency-coins-list-price-list-ticker-icos/cmb2/includes/types/CMB2_Type_Taxonomy_Select_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/cryptocurrency-coins-list-price-list-ticker-icos/cmb2/includes/types/CMB2_Type_File_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/cryptocurrency-coins-list-price-list-ticker-icos/cmb2/includes/CMB2.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/cryptocurrency-coins-list-price-list-ticker-icos/cmb2/includes/types/CMB2_Type_File_List.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/cryptocurrency-coins-list-price-list-ticker-icos/cmb2/includes/types/CMB2_Type_Textarea.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/cryptocurrency-coins-list-price-list-ticker-icos/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/cryptocurrency-coins-list-price-list-ticker-icos/cmb2/includes/types/CMB2_Type_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/cryptocurrency-coins-list-price-list-ticker-icos/cmb2/includes/types/CMB2_Type_Oembed.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

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
Attributes that require attention: Please take inspiration from this readme.txt

cryptocurrency-coins-list-price-list-ticker-icos/cryptocurrency-coins-list-price-list-ticker-icos.php Passed 13 tests

This is the main PHP file of "Cryptocurrency - Coins List, Price List, Ticker & ICOs" 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
102 characters long description:
A single wordpress plugin to create a cryptocurrency website with coin list, price list, ticker, icos.

Code Analysis Passed 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
There were no executable files found in this plugin60,656 lines of code in 240 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
JavaScript162,8492,96713,655
PHP682,3926,3928,416
CSS182801,2094,842
Sass17305291,407
SVG11013

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity19.64
▷ Minimum class complexity1.00
▷ Maximum class complexity186.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes76
▷ Abstract classes911.84%
▷ Concrete classes6788.16%
▷ Final classes00.00%
Methods594
▷ Static methods9716.33%
▷ Public methods50184.34%
▷ Protected methods9015.15%
▷ Private methods30.51%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants743.75%
▷ Class constants956.25%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
277 compressed PNG files occupy 0.29MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/super-zero.png0.95KB1.37KB0.00%
assets/contentos.png1.12KB1.36KB0.00%
assets/eos.png0.80KB1.39KB0.00%
assets/nervos-network.png0.57KB0.57KB0.00%
assets/robotina.png1.37KB1.35KB▼ 1.64%