Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼138.74ms] Passed 4 tests
Server-side resources used by WP Cambio de Divisas
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 30.61 ▲4.79 |
Dashboard /wp-admin | 3.14 ▲0.09 | 50.70 ▲1.58 |
Posts /wp-admin/edit.php | 3.25 ▲0.15 | 47.78 ▲1.45 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.08 | 98.63 ▼558.81 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 35.94 ▲0.84 |
Server storage [IO: ▲0.19MB] [DB: ▲0.62MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: 3 new tables, 1 new option
New tables |
---|
wp_monitordollar_setting |
wp_monitordollar_registry |
wp_monitordollar |
New WordPress options |
---|
tables_created |
Browser metrics Passed 4 tests
WP Cambio de Divisas: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,707 ▲111 | 15.89 ▲0.47 | 10.11 ▲2.54 | 50.54 ▼0.91 |
Dashboard /wp-admin | 2,993 ▲62 | 5.91 ▲0.00 | 144.17 ▼14.53 | 119.16 ▼2.06 |
Posts /wp-admin/edit.php | 2,765 ▲26 | 2.70 ▲0.01 | 66.29 ▼7.54 | 91.58 ▲2.70 |
Add New Post /wp-admin/post-new.php | 1,634 ▼49 | 20.96 ▲2.43 | 281.25 ▼137.21 | 111.58 ▼6.66 |
Media Library /wp-admin/upload.php | 1,833 ▲23 | 5.03 ▲0.01 | 169.75 ▲15.73 | 125.78 ▼5.77 |
Uninstaller [IO: ▲0.02MB] [DB: ▲0.62MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure failed, leaving 3 tables in the database
- wp_monitordollar
- wp_monitordollar_setting
- wp_monitordollar_registry
- Zombie WordPress options detected upon uninstall: 1 option
- tables_created
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to a member function returnRegistry() on null in wp-content/plugins/wp-monitor-dollar/admin/regit.php:2
- > PHP Notice
Undefined variable: consultas in wp-content/plugins/wp-monitor-dollar/admin/regit.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WpMonitorDollarConsultasModels' not found in wp-content/plugins/wp-monitor-dollar/class.dasboard.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-monitor-dollar/monitordollar.php:23
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-monitor-dollar/class.registry.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-monitor-dollar/class.setting.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-monitor-dollar/class.change.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Contributors: The plugin contributors field is missing
wp-monitor-dollar/monitordollar.php 85% from 13 tests
"WP Cambio de Divisas" version 0.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("wp-monitor-dollar.php" instead of "monitordollar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin871 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 111 | 14 | 549 |
CSS | 1 | 15 | 9 | 162 |
JavaScript | 1 | 50 | 4 | 160 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
2 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/img/seocontenidoslogo.png | 28.47KB | 7.79KB | ▼ 72.65% |
include/img/s.png | 107.01KB | 41.66KB | ▼ 61.07% |