Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼1.21ms] Passed 4 tests
This is a short check of server-side resources used by Rating Builder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 44.61 ▼0.91 |
Dashboard /wp-admin | 3.54 ▲0.24 | 50.16 ▲4.19 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 51.88 ▲8.08 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 83.83 ▼13.07 |
Media Library /wp-admin/upload.php | 3.46 ▲0.24 | 37.22 ▲4.97 |
Rating /wp-admin/edit.php?post_type=redq_rb_post | 3.51 | 46.05 |
Add New /wp-admin/post-new.php?post_type=redq_rb_post | 3.50 | 40.04 |
Server storage [IO: ▲6.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 144 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
webpack_public_path_url |
widget_recent-posts |
reactive_builder_admin_notices |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Rating Builder
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,290 ▲533 | 17.90 ▲3.31 | 37.73 ▲35.56 | 43.84 ▼2.98 |
Dashboard /wp-admin | 2,271 ▲80 | 6.61 ▲1.74 | 112.24 ▲6.98 | 40.68 ▼2.87 |
Posts /wp-admin/edit.php | 2,162 ▲73 | 3.67 ▲1.67 | 50.04 ▲13.51 | 37.07 ▲5.28 |
Add New Post /wp-admin/post-new.php | 1,572 ▲39 | 18.57 ▼4.59 | 608.43 ▼64.88 | 34.44 ▼17.54 |
Media Library /wp-admin/upload.php | 1,456 ▲68 | 5.98 ▲1.76 | 99.13 ▼6.00 | 44.46 ▲1.57 |
Rating /wp-admin/edit.php?post_type=redq_rb_post | 1,132 | 3.62 | 42.51 | 27.15 |
Add New /wp-admin/post-new.php?post_type=redq_rb_post | 1,632 | 6.16 | 93.55 | 380.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- webpack_public_path_url
- widget_recent-posts
- can_compress_scripts
- reactive_builder_admin_notices
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/rating-builder/rating-builder.php:138
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/rating-builder/includes/admin/rating-builder-array.php:12
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in rating-builder/assets to your readme.txt
rating-builder/rating-builder.php 92% from 13 tests
The primary PHP file in "Rating Builder" version 1.0.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin4,094 lines of code in 138 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 36 | 21 | 2,350 |
PHP | 16 | 121 | 203 | 1,072 |
JavaScript | 109 | 6 | 29 | 351 |
LESS | 1 | 35 | 11 | 169 |
JSON | 5 | 0 | 0 | 152 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 15.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 4.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 7 | 13.21% |
▷ Public methods | 52 | 98.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.89% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin