59% skyzcrm-rest-integrator

Code Review | SkyzCrm Rest integrator

WordPress plugin SkyzCrm Rest integrator scored59%from 54 tests.

About plugin

  • Plugin page: skyzcrm-rest-inte...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4
  • WordPress version: 6.3.1
  • First release: Jan 16, 2019
  • Latest release: Mar 10, 2020
  • Number of updates: 14
  • Update frequency: every 30.0 days
  • Top authors: dimaatimpactsoftcoil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /593 total downloads

Benchmarks

Plugin footprint 30% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

An overview of server-side resources used by SkyzCrm Rest integrator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.41 ▲5.50
Dashboard /wp-admin3.32 ▼0.0245.59 ▼14.13
Posts /wp-admin/edit.php3.37 ▲0.0247.46 ▼7.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.17 ▼21.36
Media Library /wp-admin/upload.php3.24 ▲0.0242.00 ▲5.79

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: 1 new table, 7 new options
New tables
wp_skyz_records
New WordPress options
widget_recent-posts
db_upgraded
skyz_dbver
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for SkyzCrm Rest integrator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8614.65 ▲0.071.74 ▼0.1246.77 ▲4.20
Dashboard /wp-admin2,241 ▲624.94 ▲0.07100.79 ▼4.2165.51 ▲18.98
Posts /wp-admin/edit.php2,121 ▲352.01 ▼0.0135.60 ▼0.3233.64 ▼1.31
Add New Post /wp-admin/post-new.php1,696 ▲16322.09 ▼0.73758.83 ▲134.1864.87 ▲10.25
Media Library /wp-admin/upload.php1,417 ▲264.22 ▲0.0796.99 ▼1.5365.75 ▲23.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/skyzcrm-rest-integrator/uninstall.php+22
    require_once(wp-content/plugins/includes/dbfuncutils.php): failed to open stream: No such file or directory
  • Uninstaller has failed for this plugin, leaving 22 files (0.70MB) in the plugin directory
    • (new file) includes/restapi.php
    • (new file) README.txt
    • (new file) accets/screenshot-1.png
    • (new file) skyz.php
    • (new file) admin/logosm.png
    • (new file) admin/index.php
    • (new file) includes/dbfuncutils.php
    • (new file) LICENSE.txt
    • (new file) admin/admin_style.css
    • (new file) accets/screenshot-2.png
    • ...
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_skyz_records
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • skyz_dbver
    • theysaidso_admin_options
    • recovery_mode_email_last_sent

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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)
No browser errors were detected

Optimizations

Plugin configuration 90% 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
4 plugin tags: c7, skyzcrm, rest, leads

skyzcrm-rest-integrator/skyz.php 77% from 13 tests

The main PHP script in "SkyzCrm Rest integrator" version 1.0.3 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("skyzcrm-rest-integrator.php" instead of "skyz.php")

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
There were no executable files found in this plugin761 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP8109168748
CSS11013

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions58
▷ Named functions58100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.61MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
skyz/accets/screenshot-1.png147.57KB49.08KB▼ 66.74%
admin/logosm.png0.94KB0.99KB0.00%
accets/screenshot-2.png164.56KB53.01KB▼ 67.79%
accets/screenshot-1.png147.57KB49.08KB▼ 66.74%
skyz/accets/screenshot-2.png164.56KB53.01KB▼ 67.79%