84% crypto-dash-tracker

Code Review | Crypto Dash Tracker

WordPress plugin Crypto Dash Tracker scored84%from 54 tests.

About plugin

  • Plugin page: crypto-dash-tracker
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6.1
  • WordPress version: 6.3.1
  • First release: Feb 19, 2021
  • Latest release: Feb 19, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: alexmustin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,171 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.16ms] Passed 4 tests

This is a short check of server-side resources used by Crypto Dash Tracker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.66 ▼0.61
Dashboard /wp-admin3.38 ▲0.0444.18 ▼15.06
Posts /wp-admin/edit.php3.49 ▲0.1443.51 ▼0.75
Add New Post /wp-admin/post-new.php5.96 ▲0.0778.50 ▼12.22
Media Library /wp-admin/upload.php3.30 ▲0.0736.08 ▲3.90
Crypto Dash Tracker /wp-admin/options-general.php?page=crypto-dash-tracker3.2731.15

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Crypto Dash Tracker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲12613.39 ▼1.161.88 ▲0.1341.88 ▼0.06
Dashboard /wp-admin2,250 ▲585.81 ▲0.8696.69 ▼8.5838.08 ▼2.03
Posts /wp-admin/edit.php2,095 ▲92.04 ▲0.0236.94 ▲0.9933.78 ▲2.05
Add New Post /wp-admin/post-new.php1,528 ▲718.27 ▼5.07598.93 ▼22.2863.49 ▲14.14
Media Library /wp-admin/upload.php1,397 ▲184.30 ▲0.0996.76 ▼2.6243.13 ▼2.04
Crypto Dash Tracker /wp-admin/options-general.php?page=crypto-dash-tracker8572.0221.8827.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/crypto-dash-tracker/admin/partials/crypto-dash-tracker-admin-display.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crypto-dash-tracker/admin/class-crypto-dash-tracker-dashboard-tracker.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: wallet, crypto, currency, coingecko, bitcoin...

crypto-dash-tracker/crypto-dash-tracker.php 85% from 13 tests

The entry point to "Crypto Dash Tracker" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 227 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin466 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5128274293
CSS1314130
Markdown120043

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.15
Average class complexity3.50
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.31
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin