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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.30 ▲0.84 | 42.04 ▲2.71 |
Dashboard /wp-admin | 4.23 ▲0.92 | 52.50 ▲1.82 |
Posts /wp-admin/edit.php | 4.28 ▲0.92 | 54.03 ▲5.83 |
Add New Post /wp-admin/post-new.php | 6.75 ▲0.86 | 91.24 ▼8.33 |
Media Library /wp-admin/upload.php | 4.09 ▲0.86 | 43.08 ▲12.10 |
Currency Converter /wp-admin/options-general.php?page=cbcurrencyconverter | 4.20 | 44.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲182 | 13.71 ▼0.55 | 11.76 ▲9.94 | 27.66 ▼17.85 |
Dashboard /wp-admin | 2,196 ▲18 | 5.55 ▼0.16 | 91.49 ▼20.57 | 39.79 ▼3.13 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.94 ▲0.00 | 38.34 ▼1.71 | 37.48 ▲0.17 |
Add New Post /wp-admin/post-new.php | 1,702 ▲167 | 24.60 ▼0.59 | 666.18 ▲18.53 | 39.66 ▼38.09 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.19 ▲0.02 | 97.66 ▼2.28 | 40.53 ▼2.64 |
Currency Converter /wp-admin/options-general.php?page=cbcurrencyconverter | 4,229 | 4.42 | 106.87 | 57.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 attentionZombie WordPress options detected upon uninstall: 11 options
- 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
- ...
- 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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 74 | 2,749 | 908 | 10,239 |
PHP | 26 | 1,150 | 1,633 | 4,246 |
Sass | 40 | 797 | 97 | 4,221 |
CSS | 12 | 118 | 9 | 753 |
SVG | 3 | 0 | 2 | 76 |
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 code | 0.36 |
Average class complexity | 31.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 142 | |
▷ Static methods | 42 | 29.58% |
▷ Public methods | 133 | 93.66% |
▷ Protected methods | 3 | 2.11% |
▷ Private methods | 6 | 4.23% |
Functions | 19 | |
▷ Named functions | 18 | 94.74% |
▷ Anonymous functions | 1 | 5.26% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon_48.png | 2.39KB | 1.61KB | ▼ 32.78% |
assets/images/icon_black_48.png | 1.42KB | 1.57KB | 0.00% |
assets/images/icon_move.png | 0.22KB | 0.22KB | ▼ 0.89% |
assets/images/elementor_icon.png | 1.65KB | 1.69KB | 0.00% |
assets/images/icon.png | 1.65KB | 1.69KB | 0.00% |