93% crypto2bgn

Code Review | Crypto 2 BGN

WordPress plugin Crypto 2 BGN scored 93% from 54 tests.

About plugin

  • Plugin page: crypto2bgn
  • Plugin version: 0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0
  • WordPress version: 5.9.2
  • First release: May 1, 2018
  • Latest release: Oct 20, 2018
  • Number of updates: 6
  • Update frequency: every 29.8 days
  • Top authors: nant82 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,010 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼299.36ms] Passed 4 tests

Server-side resources used by Crypto 2 BGN
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.4058.32 ▲41.00
Dashboard /wp-admin3.41 ▲0.0036.19 ▼5.46
Posts /wp-admin/edit.php3.64 ▲0.0041.19 ▼2.16
Add New Post /wp-admin/post-new.php6.88 ▼0.0995.84 ▼1,190.32
Media Library /wp-admin/upload.php3.30 ▲0.0026.54 ▲0.51

Server storage [IO: ▲0.00MB] [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, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Crypto 2 BGN
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,775 ▲2116.06 ▲0.215.81 ▼0.182.74 ▲0.25
Dashboard /wp-admin2,904 ▲176.46 ▼0.08126.36 ▼10.08150.73 ▼12.32
Posts /wp-admin/edit.php2,688 ▼33.43 ▲0.0060.47 ▲0.63142.65 ▼2.71
Add New Post /wp-admin/post-new.php1,717 ▲5621.42 ▲4.79446.30 ▲33.58156.82 ▲6.31
Media Library /wp-admin/upload.php1,692 ▼65.72 ▲0.01131.33 ▼16.65187.79 ▼2.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/crypto2bgn/crypto-2-bgn.php
    • > /wp-content/plugins/crypto2bgn/index.php

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

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: currencies, converter, coinmarketcap, crypto

crypto2bgn/crypto-2-bgn.php 77% from 13 tests

The principal PHP file in "Crypto 2 BGN" v. 0.8 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("crypto2bgn.php" instead of "crypto-2-bgn.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 detected90 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
Markdown137051
PHP2201939

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected