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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.47ms] Passed 4 tests
A check of server-side resources used by Ratingcaptain-plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.01 ▼4.75 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.12 ▲0.39 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.91 ▼2.25 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.28 ▼16.24 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.97 ▼2.63 |
RatingCaptain Page /wp-admin/options-general.php?page=ratingcaptain_settings | 3.24 | 33.71 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
ratingcaptain_data |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Ratingcaptain-plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.16 ▼0.21 | 1.79 ▲0.14 | 43.72 ▲0.27 |
Dashboard /wp-admin | 2,199 ▲19 | 5.64 ▼0.06 | 90.19 ▼5.21 | 40.54 ▼2.75 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.01 | 33.28 ▼7.23 | 35.49 ▼5.38 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 22.97 ▼0.63 | 688.64 ▼3.00 | 61.17 ▲4.27 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.15 ▼0.02 | 96.19 ▼14.76 | 41.24 ▼4.82 |
RatingCaptain Page /wp-admin/options-general.php?page=ratingcaptain_settings | 822 | 2.03 | 22.42 | 27.79 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- ratingcaptain_data
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ratingcaptian/RatingCaptain-plugin.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ratingcaptian/Admin/ratingcaptain_settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: reviews, google_merchant, customer_satisfaction_managment, emails, google_reviews
ratingcaptian/RatingCaptain-plugin.php 85% from 13 tests
The main PHP script in "Ratingcaptain-plugin" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ratingcaptian.php" instead of "RatingCaptain-plugin.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin254 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 13 | 23 | 202 |
Markdown | 2 | 19 | 0 | 52 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin