73% powerlink-crm-for-elementor

Code Review | PowerLink CRM for Elementor

WordPress plugin PowerLink CRM for Elementor scored73%from 54 tests.

About plugin

  • Plugin page: powerlink-crm-for...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 28, 2022
  • Latest release: Oct 28, 2022
  • Number of updates: 12
  • Update frequency: N/A
  • Top authors: navarroido (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /198 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲4.92MB] [CPU: ▲23.00ms] Passed 4 tests

This is a short check of server-side resources used by PowerLink CRM for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /8.74 ▲5.2872.68 ▲29.57
Dashboard /wp-admin8.76 ▲5.4670.83 ▲15.45
Posts /wp-admin/edit.php8.76 ▲5.4176.07 ▲22.75
Add New Post /wp-admin/post-new.php9.42 ▲3.54120.82 ▲24.23
Media Library /wp-admin/upload.php8.76 ▲5.5373.29 ▲35.96
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius8.7662.48
Powerlink CRM /wp-admin/index.php?page=powerlink-crm8.7655.46

Server storage [IO: ▲3.08MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 168 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
fs_gdpr
fs_accounts
widget_recent-comments
fs_active_plugins
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
fs_debug_mode
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for PowerLink CRM for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.30 ▼1.451.65 ▼0.2632.61 ▼11.03
Dashboard /wp-admin2,228 ▲435.89 ▲1.03107.55 ▼9.9845.33 ▲5.39
Posts /wp-admin/edit.php2,114 ▲252.01 ▼0.0840.09 ▲1.7040.45 ▲4.04
Add New Post /wp-admin/post-new.php1,525 ▲1121.96 ▲4.21668.53 ▼31.5667.92 ▲9.36
Media Library /wp-admin/upload.php1,416 ▲284.16 ▼0.03114.22 ▲7.9451.45 ▲4.77
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius1,0701.7126.2726.56
Powerlink CRM /wp-admin/index.php?page=powerlink-crm9882.0927.0755.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/powerlink-crm-for-elementor/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • Zombie WordPress options were found after uninstall: 10 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • fs_active_plugins
    • fs_debug_mode
    • fs_gdpr
    • fs_accounts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/powerlink-crm-for-elementor/admin/admin_powerlink.php:124

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 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
5 plugin tags: crm, powerlink, fireberry, elementor form, contact form

powerlink-crm-for-elementor/elementor-forms-powerlink-action.php 85% from 13 tests

The principal PHP file in "PowerLink CRM for Elementor" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("powerlink-crm-for-elementor.php" instead of "elementor-forms-powerlink-action.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 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin30,747 lines of code in 124 files:
LanguageFilesBlank linesComment linesLines of code
PHP1107,26616,25530,539
JavaScript33459194
CSS110014

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity86.64
▷ Minimum class complexity1.00
▷ Maximum class complexity2,911.00
Average method complexity4.62
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes47
▷ Abstract classes24.26%
▷ Concrete classes4595.74%
▷ Final classes00.00%
Methods1,145
▷ Static methods17315.11%
▷ Public methods80570.31%
▷ Protected methods151.31%
▷ Private methods32528.38%
Functions95
▷ Named functions95100.00%
▷ Anonymous functions00.00%
Constants124
▷ Global constants9979.84%
▷ Class constants2520.16%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/powerlink-logo.png5.72KB4.09KB▼ 28.51%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/powerlink-elementor-form.png9.16KB5.26KB▼ 42.58%