Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.56ms] Passed 4 tests
Analyzing server-side resources used by Venezuelan Economic Indicators Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.04 ▼3.22 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.27 ▲1.59 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.53 ▼0.32 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.10 ▼12.29 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.06 ▲5.79 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_jjva_economic-indicators-widget |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Venezuelan Economic Indicators Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼1.12 | 1.68 ▼0.25 | 39.28 ▼3.66 |
Dashboard /wp-admin | 2,206 ▲15 | 4.85 ▼0.06 | 104.81 ▲3.22 | 39.03 ▼1.33 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.02 | 35.72 ▼5.04 | 32.33 ▼3.99 |
Add New Post /wp-admin/post-new.php | 1,514 ▲1 | 17.69 ▼0.02 | 626.87 ▲27.28 | 58.26 ▼3.45 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.08 | 95.61 ▼5.68 | 41.10 ▲0.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_jjva_economic-indicators-widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/venezuelan-economic-indicators/jjva_indicators_widget.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2 in venezuelan-economic-indicators/assets to your readme.txt
venezuelan-economic-indicators/jjva_indicators_widget.php 92% from 13 tests
The primary PHP file in "Venezuelan Economic Indicators Widget" version 0.1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("venezuelan-economic-indicators.php" instead of "jjva_indicators_widget.php")
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
No dangerous file extensions were detected81 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 12 | 24 | 68 |
CSS | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.11MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/simadi.png | 20.60KB | 15.19KB | ▼ 26.27% |
icons/trm.png | 11.67KB | 7.84KB | ▼ 32.83% |
icons/dolar1.png | 20.58KB | 14.01KB | ▼ 31.94% |
icons/venta.png | 15.28KB | 10.94KB | ▼ 28.45% |
icons/euro.png | 5.57KB | 5.80KB | 0.00% |