80% cbcurrencyconverter

Code Review | CBX Currency Converter

WordPress plugin CBX Currency Converter scored80%from 54 tests.

About plugin

  • Plugin page: cbcurrencyconverter
  • Plugin version: 3.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 5, 2015
  • Latest release: Nov 30, 2023
  • Number of updates: 78
  • Update frequency: every 41.7 days
  • Top authors: manchumahara (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

900+ active /38,374 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.87MB] [CPU: ▲0.51ms] Passed 4 tests

Server-side resources used by CBX Currency Converter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.30 ▲0.8442.04 ▲2.71
Dashboard /wp-admin4.23 ▲0.9252.50 ▲1.82
Posts /wp-admin/edit.php4.28 ▲0.9254.03 ▲5.83
Add New Post /wp-admin/post-new.php6.75 ▲0.8691.24 ▼8.33
Media Library /wp-admin/upload.php4.09 ▲0.8643.08 ▲12.10
Currency Converter /wp-admin/options-general.php?page=cbcurrencyconverter4.2044.87

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 179 new files
Database: no new tables, 11 new options
New WordPress options
cbcurrencyconverter_tools
cbcurrencyconverter_global
widget_cbcurrencyconverterwidget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
cbcurrencyconverter_list
cbcurrencyconverter_calculator
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for CBX Currency Converter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲18213.71 ▼0.5511.76 ▲9.9427.66 ▼17.85
Dashboard /wp-admin2,196 ▲185.55 ▼0.1691.49 ▼20.5739.79 ▼3.13
Posts /wp-admin/edit.php2,107 ▲71.94 ▲0.0038.34 ▼1.7137.48 ▲0.17
Add New Post /wp-admin/post-new.php1,702 ▲16724.60 ▼0.59666.18 ▲18.5339.66 ▼38.09
Media Library /wp-admin/upload.php1,407 ▲104.19 ▲0.0297.66 ▼2.2840.53 ▼2.64
Currency Converter /wp-admin/options-general.php?page=cbcurrencyconverter4,2294.42106.8757.52

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin has failed uninstalling correctly, leaving 179 files (2.17MB) in the plugin directory
    • (new file) assets/css/cbcurrencyconverter-elementor.css
    • (new file) admin/index.php
    • (new file) assets/css/cbcurrencyconverter-block.css
    • (new file) admin/class-cbcurrencyconverter-admin.php
    • (new file) assets/css/cbcurrencyconverter-block.css.map
    • (new file) assets/css/cbcurrencyconverter-admin.css.map
    • (new file) assets/css/cbcurrencyconverter-admin.css
    • (new file) README.txt
    • (new file) LICENSE.txt
    • (new file) assets/css/cbcurrencyconverter-elementor.css.map
    • ...
  • Zombie WordPress options detected upon uninstall: 11 options
    • cbcurrencyconverter_calculator
    • db_upgraded
    • theysaidso_admin_options
    • cbcurrencyconverter_list
    • widget_recent-posts
    • widget_recent-comments
    • cbcurrencyconverter_global
    • widget_cbcurrencyconverterwidget
    • cbcurrencyconverter_tools
    • can_compress_scripts
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7, #8, #9, #10, #11, #12, #13, #14 in cbcurrencyconverter/assets to your readme.txt
You can take inspiration from this readme.txt

cbcurrencyconverter/cbcurrencyconverter.php Passed 13 tests

"CBX Currency Converter" version 3.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
35 characters long description:
Currency Converter and rate display

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin19,535 lines of code in 155 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript742,74990810,239
PHP261,1501,6334,246
Sass40797974,221
CSS121189753
SVG30276

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity31.82
▷ Minimum class complexity1.00
▷ Maximum class complexity178.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods142
▷ Static methods4229.58%
▷ Public methods13393.66%
▷ Protected methods32.11%
▷ Private methods64.23%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
Constants5
▷ Global constants5100.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 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon_48.png2.39KB1.61KB▼ 32.78%
assets/images/icon_black_48.png1.42KB1.57KB0.00%
assets/images/icon_move.png0.22KB0.22KB▼ 0.89%
assets/images/elementor_icon.png1.65KB1.69KB0.00%
assets/images/icon.png1.65KB1.69KB0.00%