Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.74ms] Passed 4 tests
This is a short check of server-side resources used by Smart Currency Converter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.93 ▲0.42 |
Dashboard /wp-admin | 3.34 ▲0.04 | 52.20 ▲1.84 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 50.06 ▼0.06 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 89.71 ▼5.17 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.95 ▲4.86 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_crconverterwidget |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Smart Currency Converter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲157 | 13.56 ▼0.73 | 10.08 ▲8.07 | 43.02 ▼2.55 |
Dashboard /wp-admin | 2,214 ▲26 | 4.86 ▼0.24 | 105.93 ▼5.33 | 38.65 ▼7.76 |
Posts /wp-admin/edit.php | 2,100 ▲14 | 2.04 ▲0.01 | 37.03 ▲0.44 | 32.87 ▼2.88 |
Add New Post /wp-admin/post-new.php | 1,524 ▲10 | 23.27 ▲5.80 | 676.77 ▲5.24 | 58.96 ▲5.14 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.23 ▲0.01 | 105.68 ▲2.62 | 45.48 ▲4.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_crconverterwidget
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/smart-currency-converter/smart-currency-converter.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Converter Setup), #2 (Sidebar), #3 (Currency Dropdown), #4 (Converter in-action)
smart-currency-converter/smart-currency-converter.php Passed 13 tests
Analyzing the main PHP file in "Smart Currency Converter" version 1.0
77 characters long description:
A customizable currency converter widget with support for over 70 currencies!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,070 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 161 | 0 | 890 |
PHP | 1 | 22 | 10 | 133 |
JavaScript | 2 | 19 | 3 | 47 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 33.33% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 18.85KB | 5.39KB | ▼ 71.41% |
assets/screenshot-3.png | 36.74KB | 10.00KB | ▼ 72.79% |
assets/screenshot-1.png | 28.04KB | 7.91KB | ▼ 71.80% |
assets/images/flags.png | 12.13KB | 12.93KB | 0.00% |
assets/screenshot-2.png | 15.99KB | 4.68KB | ▼ 70.77% |