78% saleztalk

Code Review | SalezTalk

WordPress plugin SalezTalk scored78%from 54 tests.

About plugin

  • Plugin page: saleztalk
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.2
  • WordPress version: 6.3.1
  • First release: Feb 6, 2018
  • Latest release: Feb 6, 2018
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: milanmotavar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /568 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by SalezTalk
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.27 ▲0.19
Dashboard /wp-admin3.32 ▼0.0347.49 ▼19.53
Posts /wp-admin/edit.php3.37 ▲0.0144.96 ▼4.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.11 ▼12.23
Media Library /wp-admin/upload.php3.24 ▲0.0140.76 ▲5.43
SalezTalk /wp-admin/options-general.php?page=SalezTalk3.1831.31

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for SalezTalk
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6614.58 ▲0.051.52 ▼0.3740.43 ▼3.07
Dashboard /wp-admin2,218 ▲445.65 ▲0.0189.53 ▼9.0940.04 ▼2.03
Posts /wp-admin/edit.php2,123 ▲232.01 ▲0.0137.98 ▲2.0234.19 ▼3.81
Add New Post /wp-admin/post-new.php1,543 ▲722.98 ▲0.08668.28 ▲52.2472.16 ▲17.06
Media Library /wp-admin/upload.php1,423 ▲264.38 ▲0.19102.21 ▲5.7844.97 ▼1.82
SalezTalk /wp-admin/options-general.php?page=SalezTalk7571.9924.8725.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=SalezTalk
    • > Warning in wp-content/plugins/saleztalk/SalezTalk.php+131
    include_once(wp-content/plugins/SalezTalk/views/settings.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/options-general.php?page=SalezTalk
    • > Warning in wp-content/plugins/saleztalk/SalezTalk.php+131
    include_once(): Failed opening 'wp-content/plugins/SalezTalk/views/settings.php' for inclusion (include_path='.:/usr/share/php')

SRP 50% 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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/saleztalk/views/dashboard-notices.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/saleztalk/views/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/saleztalk/SalezTalk.php:39

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Too many tags (23 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

saleztalk/SalezTalk.php 85% from 13 tests

"SalezTalk" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("saleztalk.php" instead of "SalezTalk.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin146 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33077146

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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 files were detected