72% import-current-rms

Code Review | Current RMS Import

WordPress plugin Current RMS Import scored72%from 54 tests.

About plugin

  • Plugin page: import-current-rms
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: May 2, 2017
  • Latest release: May 2, 2017
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: qamar065 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /823 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.92 ▲2.13
Dashboard /wp-admin3.40 ▲0.0966.44 ▲20.82
Posts /wp-admin/edit.php3.51 ▲0.1647.34 ▲3.56
Add New Post /wp-admin/post-new.php6.00 ▲0.1189.62 ▼6.16
Media Library /wp-admin/upload.php3.32 ▲0.0936.22 ▲3.32
Current RMS /wp-admin/admin.php?page=d_crms3.3032.16
Credentials /wp-admin/admin.php?page=d_crms_api_sub_page3.2930.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲20413.62 ▼0.754.92 ▲3.0438.19 ▼8.03
Dashboard /wp-admin2,237 ▲524.94 ▲0.0597.56 ▼6.4169.03 ▲29.05
Posts /wp-admin/edit.php2,117 ▲281.99 ▼0.0139.73 ▲6.7033.77 ▼0.19
Add New Post /wp-admin/post-new.php1,705 ▲18624.60 ▲1.27669.51 ▲72.7865.53 ▲9.44
Media Library /wp-admin/upload.php1,410 ▲194.20 ▼0.0898.34 ▼5.0973.74 ▲31.82
Current RMS /wp-admin/admin.php?page=d_crms8382.0625.9625.51
Credentials /wp-admin/admin.php?page=d_crms_api_sub_page8352.0624.4427.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP13272545484
CSS213846
JavaScript226756

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 code0.11
Average class complexity2.43
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.27
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods37
▷ Static methods25.41%
▷ Public methods3286.49%
▷ Protected methods00.00%
▷ Private methods513.51%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
admin/images/menu-icon.png2.09KB1.41KB▼ 32.38%
admin/images/progress-bg.png0.10KB0.17KB0.00%