84% surbma-minicrm-shortcode

Code Review | Surbma | MiniCRM Shortcode

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

About plugin

  • Plugin page: surbma-minicrm-sh...
  • 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: Dec 10, 2014
  • Latest release: Apr 8, 2023
  • Number of updates: 17
  • Update frequency: every 178.9 days
  • Top authors: Surbma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,049 total downloads

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
This plugin's installer ran successfully

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

A check of server-side resources used by Surbma | MiniCRM Shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0032.07 ▼7.32
Dashboard /wp-admin3.31 ▲0.0041.08 ▼4.24
Posts /wp-admin/edit.php3.36 ▲0.0046.14 ▼4.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.18 ▼21.97
Media Library /wp-admin/upload.php3.23 ▲0.0031.99 ▼3.07

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Surbma | MiniCRM Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.151.60 ▼0.2239.78 ▼3.46
Dashboard /wp-admin2,206 ▲184.86 ▼1.02111.84 ▲12.4043.39 ▲1.34
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0134.55 ▼5.9133.81 ▼3.69
Add New Post /wp-admin/post-new.php1,514 ▼2317.76 ▼0.65643.47 ▲38.1664.68 ▲17.21
Media Library /wp-admin/upload.php1,388 ▼04.11 ▼0.1096.19 ▼8.4240.05 ▼5.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/surbma-minicrm-shortcode/surbma-minicrm-shortcode.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
2 plugin tags: minicrm, shortcode

surbma-minicrm-shortcode/surbma-minicrm-shortcode.php Passed 13 tests

The main PHP script in "Surbma | MiniCRM Shortcode" version 2.0 is automatically included on every request by WordPress
59 characters long description:
A simple shortcode to include MiniCRM forms into WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin51 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File171833
PHP181315
Markdown1103

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin