Benchmarks
Plugin footprint 83% from 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 gracefully, with no errors
Server metrics [RAM: ▲0.48MB] [CPU: ▼2.41ms] Passed 4 tests
Analyzing server-side resources used by RiskCUBE
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 33.57 ▼12.41 |
Dashboard /wp-admin | 3.88 ▲0.58 | 50.12 ▼5.16 |
Posts /wp-admin/edit.php | 3.93 ▲0.58 | 59.40 ▲12.07 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 99.48 ▲4.76 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 42.30 ▲3.18 |
View log /wp-admin/admin.php?page=rc-view-log | 3.71 | 44.20 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for RiskCUBE
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,477 ▼284 | 14.37 ▲0.08 | 0.83 ▼0.90 | 15.33 ▼35.52 |
Dashboard /wp-admin | 2,203 ▲26 | 5.65 ▲0.03 | 84.12 ▼12.57 | 39.71 ▼3.90 |
Posts /wp-admin/edit.php | 2,111 ▲14 | 2.03 ▲0.05 | 42.54 ▲7.56 | 35.20 ▼0.96 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.11 ▲0.14 | 608.80 ▼63.91 | 65.05 ▲1.29 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.23 ▼0.02 | 101.65 ▼12.28 | 47.01 ▼1.50 |
View log /wp-admin/admin.php?page=rc-view-log | 760 | 2.05 | 24.47 | 30.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: riskcube, woocommerce, invoice
riskcube-von-creditreform-schweiz/riskcube.php 77% from 13 tests
The principal PHP file in "RiskCUBE" v. 2.4.7 is loaded by WordPress automatically on each request
The following require your attention:
- Description: A good plugin description is longer than 10 characters (currently 8 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("riskcube-von-creditreform-schweiz.php" instead of "riskcube.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,875 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 548 | 737 | 2,731 |
JavaScript | 6 | 23 | 4 | 138 |
JSON | 1 | 0 | 0 | 5 |
CSS | 1 | 1 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 24.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 136 | |
▷ Static methods | 88 | 64.71% |
▷ Public methods | 115 | 84.56% |
▷ Protected methods | 5 | 3.68% |
▷ Private methods | 16 | 11.76% |
Functions | 8 | |
▷ Named functions | 2 | 25.00% |
▷ Anonymous functions | 6 | 75.00% |
Constants | 16 | |
▷ Global constants | 3 | 18.75% |
▷ Class constants | 13 | 81.25% |
▷ Public constants | 13 | 100.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
PNG images were not found in this plugin