84% cryptocurrency-converter

Code Review | Cryptocurrency Converter

WordPress plugin Cryptocurrency Converter scored84%from 54 tests.

About plugin

  • Plugin page: cryptocurrency-co...
  • Plugin version: 0.6
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2
  • WordPress version: 6.3.1
  • First release: Jul 15, 2018
  • Latest release: Aug 16, 2019
  • Number of updates: 10
  • Update frequency: every 39.8 days
  • Top authors: nettantra (80%)pitabas106 (30%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,565 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▼0.58ms] Passed 4 tests

Server-side resources used by Cryptocurrency Converter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.32 ▼4.65
Dashboard /wp-admin3.38 ▲0.0844.79 ▼5.60
Posts /wp-admin/edit.php3.43 ▲0.0747.51 ▲3.66
Add New Post /wp-admin/post-new.php5.96 ▲0.0790.22 ▲4.84
Media Library /wp-admin/upload.php3.30 ▲0.0735.58 ▲4.27
Cryptocurrency Converter /wp-admin/options-general.php?page=cryptocurrency-converter3.2733.67

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Cryptocurrency Converter
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.39 ▼1.191.71 ▼0.6139.15 ▼5.51
Dashboard /wp-admin2,207 ▲195.85 ▼0.0397.64 ▼14.3140.57 ▼4.88
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0439.42 ▲4.0435.65 ▼1.89
Add New Post /wp-admin/post-new.php1,550 ▲1718.45 ▼4.68603.62 ▲9.4065.58 ▲0.14
Media Library /wp-admin/upload.php1,392 ▲14.18 ▼0.0299.54 ▲0.9442.68 ▲0.23
Cryptocurrency Converter /wp-admin/options-general.php?page=cryptocurrency-converter24,5183.34148.6443.70

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 detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

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)
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/cryptocurrency-converter/cryptocurrency-converter.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: currency exchange, exchange rates, cryptocurrency converter, currency converter, bitcoin...

cryptocurrency-converter/cryptocurrency-converter.php 92% from 13 tests

"Cryptocurrency Converter" version 0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)

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
Good job! No executable or dangerous file extensions detected625 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP27322371
JavaScript4188132
CSS20473
SVG10049

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.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
6 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/peter_river.png0.20KB0.08KB▼ 58.62%
assets/images/pomegranate.png0.20KB0.08KB▼ 58.62%
assets/images/pumpkin.png0.20KB0.08KB▼ 58.42%
assets/images/green_sea.png0.20KB0.08KB▼ 58.62%
assets/images/orange.png0.20KB0.08KB▼ 58.62%