Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼6.27ms] Passed 4 tests
Analyzing server-side resources used by WP Currencies
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.13 | 39.12 ▼2.52 |
Dashboard /wp-admin | 3.50 ▲0.12 | 47.06 ▼17.07 |
Posts /wp-admin/edit.php | 3.61 ▲0.22 | 51.87 ▲2.19 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.16 | 91.31 ▼7.66 |
Media Library /wp-admin/upload.php | 3.42 ▲0.16 | 39.05 ▲5.11 |
Currencies /wp-admin/options-general.php?page=wp_currencies | 3.39 | 32.00 |
Server storage [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: no files
Database: 1 new table, 6 new options
New tables |
---|
wp_currencies |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP Currencies
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 14.74 ▲0.46 | 1.65 ▼0.24 | 38.37 ▼1.35 |
Dashboard /wp-admin | 2,213 ▲22 | 5.85 ▲0.90 | 108.10 ▲2.34 | 42.95 ▲2.85 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.99 ▼0.01 | 35.60 ▼5.68 | 34.12 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,541 ▲6 | 23.37 ▲0.25 | 707.70 ▲70.05 | 52.25 ▼3.88 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.18 ▼0.13 | 94.18 ▼8.64 | 39.74 ▼2.59 |
Currencies /wp-admin/options-general.php?page=wp_currencies | 847 | 2.05 | 25.11 | 27.70 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
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× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-currencies/wp-currencies.php:56
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% 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
9 plugin tags: exchange-rates, currencies, acf, ecommerce, currency...
wp-currencies/wp-currencies.php 92% from 13 tests
The main file in "WP Currencies" v. 1.4.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
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
Everything looks great! No dangerous files found in this plugin1,404 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 362 | 800 | 1,232 |
PO File | 1 | 28 | 61 | 81 |
Markdown | 2 | 26 | 0 | 70 |
JSON | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 10.22 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 48 | |
▷ Static methods | 6 | 12.50% |
▷ Public methods | 45 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.25% |
Functions | 17 | |
▷ Named functions | 12 | 70.59% |
▷ Anonymous functions | 5 | 29.41% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin