84% surbma-salesautopilot-shortcode

Code Review | Surbma | SalesAutopilot Shortcode

WordPress plugin Surbma | SalesAutopilot Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: surbma-salesautop...
  • Plugin version: 2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Feb 19, 2017
  • Latest release: Apr 8, 2023
  • Number of updates: 9
  • Update frequency: every 248.2 days
  • Top authors: Surbma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,062 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.51ms] Passed 4 tests

Analyzing server-side resources used by Surbma | SalesAutopilot Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.47 ▲1.13
Dashboard /wp-admin3.31 ▲0.0053.71 ▲3.12
Posts /wp-admin/edit.php3.36 ▲0.0049.10 ▼7.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.29 ▼17.06
Media Library /wp-admin/upload.php3.23 ▲0.0038.15 ▲0.99

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Surbma | SalesAutopilot Shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.071.82 ▼0.3142.27 ▼0.03
Dashboard /wp-admin2,192 ▲155.61 ▲0.0793.71 ▲5.4741.91 ▼1.34
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0532.88 ▼2.5534.70 ▼2.74
Add New Post /wp-admin/post-new.php1,526 ▼023.66 ▲2.27688.96 ▼39.1957.30 ▼0.46
Media Library /wp-admin/upload.php1,397 ▼64.14 ▼0.04108.02 ▲3.4946.58 ▼1.21

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • 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 no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/surbma-salesautopilot-shortcode/surbma-salesautopilot-shortcode.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: form, shortcode, crm, salesautopilot

surbma-salesautopilot-shortcode/surbma-salesautopilot-shortcode.php 92% from 13 tests

The main PHP file in "Surbma | SalesAutopilot Shortcode" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected18 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP181315
Markdown1103

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin