83% crypto-websocket

Code Review | Crypto Websocket

WordPress plugin Crypto Websocket scored83%from 54 tests.

About plugin

  • Plugin page: crypto-websocket
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.5.1
  • WordPress version: 6.3.1
  • First release: Aug 7, 2020
  • Latest release: Sep 17, 2020
  • Number of updates: 4
  • Update frequency: every 11.3 days
  • Top authors: crypt001 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /4,733 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.01MB] [CPU: ▼11.29ms] Passed 4 tests

This is a short check of server-side resources used by Crypto Websocket
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.69 ▲4.70
Dashboard /wp-admin3.32 ▼0.0242.54 ▼15.57
Posts /wp-admin/edit.php3.37 ▲0.0242.47 ▼4.98
Add New Post /wp-admin/post-new.php5.90 ▲0.0278.59 ▼20.62
Media Library /wp-admin/upload.php3.24 ▲0.0132.42 ▼3.97

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

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

Browser metrics Passed 4 tests

Crypto Websocket: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.44 ▲0.157.15 ▲5.3943.25 ▲3.13
Dashboard /wp-admin2,192 ▲125.56 ▼0.0683.80 ▼8.0037.48 ▼4.17
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0133.72 ▼2.7031.43 ▼4.05
Add New Post /wp-admin/post-new.php1,528 ▼823.14 ▲0.01672.94 ▼12.1848.28 ▼3.12
Media Library /wp-admin/upload.php1,397 ▲34.19 ▼0.1696.10 ▼3.3041.80 ▼4.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crypto-websocket/crypto-websocket.php:16

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (Putting shortcode on page/post), #2 (code showing data table)
You can take inspiration from this readme.txt

crypto-websocket/crypto-websocket.php 92% from 13 tests

"Crypto Websocket" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 278 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin284 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16361280
JavaScript20134

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin