Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▲0.71ms] Passed 4 tests
Server-side resources used by Current RMS Import
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 36.92 ▲2.13 |
Dashboard /wp-admin | 3.40 ▲0.09 | 66.44 ▲20.82 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 47.34 ▲3.56 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 89.62 ▼6.16 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.22 ▲3.32 |
Current RMS /wp-admin/admin.php?page=d_crms | 3.30 | 32.16 |
Credentials /wp-admin/admin.php?page=d_crms_api_sub_page | 3.29 | 30.46 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Current RMS Import
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲204 | 13.62 ▼0.75 | 4.92 ▲3.04 | 38.19 ▼8.03 |
Dashboard /wp-admin | 2,237 ▲52 | 4.94 ▲0.05 | 97.56 ▼6.41 | 69.03 ▲29.05 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 1.99 ▼0.01 | 39.73 ▲6.70 | 33.77 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,705 ▲186 | 24.60 ▲1.27 | 669.51 ▲72.78 | 65.53 ▲9.44 |
Media Library /wp-admin/upload.php | 1,410 ▲19 | 4.20 ▼0.08 | 98.34 ▼5.09 | 73.74 ▲31.82 |
Current RMS /wp-admin/admin.php?page=d_crms | 838 | 2.06 | 25.96 | 25.51 |
Credentials /wp-admin/admin.php?page=d_crms_api_sub_page | 835 | 2.06 | 24.44 | 27.55 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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 output text when accessed directly:
- > /wp-content/plugins/import-current-rms/public/partials/d_crms-public-display.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/import-current-rms/admin/partials/d_crms-admin-page-display.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/import-current-rms/admin/partials/d_crms-admin-display.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=d_crms_api_sub_page
- > Network (severe)
/code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=d_crms
- > Network (severe)
wp-admin/http//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
4 plugin tags: import woocommerce product, import products, import, woocommerce
import-current-rms/d_crms.php 85% from 13 tests
Analyzing the main PHP file in "Current RMS Import" version 1.0.0
The following require your attention:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: The principal plugin file should be the same as the plugin slug ("import-current-rms.php" instead of "d_crms.php")
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
Good job! No executable or dangerous file extensions detected536 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 272 | 545 | 484 |
CSS | 2 | 13 | 8 | 46 |
JavaScript | 2 | 26 | 75 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 2.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.51% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/menu-icon.png | 2.09KB | 1.41KB | ▼ 32.38% |
admin/images/progress-bg.png | 0.10KB | 0.17KB | 0.00% |