Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.63MB] [CPU: ▼1.15ms] Passed 4 tests
Analyzing server-side resources used by Risk List
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.13 ▲0.67 | 48.08 ▲2.36 |
Dashboard /wp-admin | 3.95 ▲0.60 | 50.66 ▼11.94 |
Posts /wp-admin/edit.php | 4.03 ▲0.67 | 55.49 ▲1.73 |
Add New Post /wp-admin/post-new.php | 6.54 ▲0.65 | 128.90 ▲33.03 |
Media Library /wp-admin/upload.php | 3.84 ▲0.60 | 41.97 ▲3.25 |
Processs /wp-admin/edit.php?post_type=risklist_process | 3.88 | 43.45 |
Risks /wp-admin/edit.php?post_type=risklist_risk | 3.88 | 40.97 |
Actions /wp-admin/edit.php?post_type=risklist_action | 3.88 | 40.22 |
Objectives /wp-admin/edit.php?post_type=risklist_objective | 3.88 | 39.14 |
Controls /wp-admin/edit.php?post_type=risklist_control | 3.88 | 40.72 |
Metrics /wp-admin/edit.php?post_type=risklist_metric | 3.88 | 42.36 |
Server storage [IO: ▲1.90MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Risk List
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,380 ▲645 | 13.53 ▼0.70 | 1.73 ▼0.24 | 46.95 ▼6.98 |
Dashboard /wp-admin | 2,768 ▲591 | 5.14 ▼0.51 | 104.71 ▲3.09 | 48.62 ▲5.15 |
Posts /wp-admin/edit.php | 2,190 ▲87 | 2.39 ▲0.40 | 42.62 ▲7.43 | 38.26 ▲1.49 |
Add New Post /wp-admin/post-new.php | 1,595 ▲69 | 23.39 ▲5.92 | 655.27 ▼60.29 | 41.41 ▼19.17 |
Media Library /wp-admin/upload.php | 1,474 ▲77 | 4.56 ▲0.41 | 100.53 ▼7.75 | 49.71 ▲3.82 |
Processs /wp-admin/edit.php?post_type=risklist_process | 1,158 | 2.37 | 38.30 | 29.95 |
Risks /wp-admin/edit.php?post_type=risklist_risk | 1,200 | 2.38 | 35.02 | 27.87 |
Actions /wp-admin/edit.php?post_type=risklist_action | 1,166 | 2.36 | 42.32 | 29.35 |
Objectives /wp-admin/edit.php?post_type=risklist_objective | 1,179 | 2.36 | 33.95 | 30.11 |
Controls /wp-admin/edit.php?post_type=risklist_control | 1,187 | 2.39 | 35.07 | 28.58 |
Metrics /wp-admin/edit.php?post_type=risklist_metric | 1,187 | 2.49 | 33.60 | 28.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/risk-list/risk-list.php:20
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=risklist_metric
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).sortable is not a function" "TypeError: jQuery(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/risk-list/js/main.js?ver=6.3.1:129:34)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=risklist_metric
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).sortable is not a function
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: risks, risk management
risk-list/risk-list.php Passed 13 tests
Analyzing the main PHP file in "Risk List" version 1.0
75 characters long description:
Risk List is Risk Management Software running on the WordPress CMS platform
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 detected12,317 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 22 | 69 | 7,647 |
PHP | 4 | 547 | 184 | 2,442 |
JavaScript | 6 | 327 | 141 | 1,281 |
SVG | 2 | 0 | 0 | 914 |
HTML | 1 | 1 | 0 | 33 |
PHP code Passed 2 tests
An short overview of 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.45 |
Average class complexity | 13.40 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
html/before-you-go/assets/zbs_logo.png | 23.62KB | 9.98KB | ▼ 57.76% |
html/before-you-go/assets/risklistweb.png | 1.96KB | 1.33KB | ▼ 32.15% |