Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼1.63MB] [CPU: ▼181.98ms] Passed 4 tests
This is a short check of server-side resources used by Responsive Investment Calculator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.99 ▼0.84 | 10.52 ▼22.10 |
Dashboard /wp-admin | 2.01 ▼1.04 | 11.12 ▼35.43 |
Posts /wp-admin/edit.php | 2.02 ▼1.09 | 10.24 ▼34.96 |
Add New Post /wp-admin/post-new.php | 2.01 ▼3.42 | 9.63 ▼633.70 |
Media Library /wp-admin/upload.php | 2.02 ▼0.99 | 10.10 ▼23.83 |
Resp Investment Calculator /wp-admin/options-general.php?page=ric_options | 2.02 | 10.42 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_ric_widget |
ric_options |
Browser metrics Passed 4 tests
A check of browser resources used by Responsive Investment Calculator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.83 ▲0.16 | 8.65 ▼3.54 | 50.25 ▼0.96 |
Dashboard /wp-admin | 2,978 ▲47 | 5.94 ▼0.11 | 128.25 ▼23.25 | 116.76 ▲1.21 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.73 ▲0.02 | 63.47 ▼2.70 | 93.41 ▲0.10 |
Add New Post /wp-admin/post-new.php | 1,594 ▲94 | 18.93 ▲0.10 | 383.97 ▲5.62 | 113.43 ▲2.61 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.01 ▼0.02 | 151.40 ▲11.74 | 115.06 ▼4.31 |
Resp Investment Calculator /wp-admin/options-general.php?page=ric_options | 1,704 | 2.09 | 58.56 | 96.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in RICWidget is deprecated since version 4.3.0! Use __construct() instead.
- The uninstall procedure has failed, leaving 1 option in the database
- widget_ric_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=ric_options
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in RICWidget is deprecated since version 4.3.0! Use __construct() instead.
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
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'RIC' not found in wp-content/plugins/responsive-investment-calculator/adm/partial-settings-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/responsive-investment-calculator/inc/array-default-options.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== responsive-investment-calculator ===
)
responsive-investment-calculator/responsive-investment-calculator.php 92% from 13 tests
The main PHP file in "Responsive Investment Calculator" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
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
Good job! No executable or dangerous file extensions detected1,648 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 257 | 165 | 1,303 |
JavaScript | 1 | 58 | 15 | 195 |
CSS | 1 | 25 | 0 | 150 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 10.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 84 | |
▷ Static methods | 18 | 21.43% |
▷ Public methods | 38 | 45.24% |
▷ Protected methods | 3 | 3.57% |
▷ Private methods | 43 | 51.19% |
Functions | 3 | |
▷ Named functions | 3 | 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
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 |
img/icon_inspector.png | 0.49KB | 0.38KB | ▼ 22.31% |