Benchmarks
Plugin footprint Passed 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.10MB] [CPU: ▼264.71ms] Passed 4 tests
Analyzing server-side resources used by Cotação Moedas
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 23.26 ▲2.58 |
Dashboard /wp-admin | 3.16 ▲0.11 | 45.18 ▲3.55 |
Posts /wp-admin/edit.php | 3.27 ▲0.16 | 45.03 ▲0.06 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.09 | 93.72 ▼1,054.54 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 32.58 ▼6.93 |
Cotação Moedas /wp-admin/options-general.php?page=cmh-bcb | 3.10 | 28.01 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Cotação Moedas: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,675 ▲93 | 16.13 ▲0.33 | 7.15 ▼0.92 | 47.80 ▼5.34 |
Dashboard /wp-admin | 2,957 ▲107 | 6.55 ▲0.64 | 136.64 ▲2.98 | 99.56 ▼6.66 |
Posts /wp-admin/edit.php | 2,733 ▲27 | 2.74 ▲0.05 | 64.67 ▼3.69 | 101.92 ▲4.05 |
Add New Post /wp-admin/post-new.php | 1,886 ▲33 | 17.43 ▼1.33 | 367.92 ▲11.93 | 124.37 ▲9.63 |
Media Library /wp-admin/upload.php | 1,800 ▲87 | 5.33 ▲0.34 | 120.85 ▼30.15 | 108.65 ▼14.00 |
Cotação Moedas /wp-admin/options-general.php?page=cmh-bcb | 1,081 | 2.55 | 54.27 | 67.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=cmh-bcb
- > Notice in wp-content/plugins/cotacao-moedas-hoje/admin/partials/cmh-bcb-admin-display.php+37
Undefined variable: soapActive
SRP 0% 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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cotacao-moedas-hoje/public/partials/cmh-bcb-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/cotacao-moedas-hoje/admin/partials/cmh-bcb-admin-display.php:22
- > 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 90% 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
These attributes need your attention:
- Donate link: Invalid url: ""
cotacao-moedas-hoje/cmh-bcb.php 85% from 13 tests
The main file in "Cotação Moedas" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("cotacao-moedas-hoje.php" instead of "cmh-bcb.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin630 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 197 | 630 | 540 |
CSS | 2 | 2 | 8 | 80 |
JavaScript | 2 | 8 | 56 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 31 | 81.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 18.42% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/imgs/logo_admin.png | 3.42KB | 1.30KB | ▼ 61.98% |