84% wovax-crm

Code Review | Wovax CRM

WordPress plugin Wovax CRM scored 84% from 54 tests.

About plugin

  • Plugin page: wovax-crm
  • Plugin version: 0.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.5
  • WordPress version: 5.8.1
  • First release: Feb 4, 2021
  • Latest release: Feb 5, 2021
  • Number of updates: 6
  • Update frequency: every 10.3 days
  • Top authors: wovax (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 111 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼137.81ms] Passed 4 tests

This is a short check of server-side resources used by Wovax CRM
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0340.02 ▲7.43
Dashboard /wp-admin3.09 ▲0.0350.18 ▲1.50
Posts /wp-admin/edit.php3.14 ▲0.0351.58 ▲6.17
Add New Post /wp-admin/post-new.php5.45 ▲0.0191.81 ▼561.43
Media Library /wp-admin/upload.php3.03 ▲0.0234.04 ▲2.52

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 2 new options
New WordPress options
wovax_crm_email
wovax_crm_api_key

Browser metrics Passed 4 tests

A check of browser resources used by Wovax CRM
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,879 ▲28316.18 ▲0.3413.49 ▲3.2948.44 ▼13.14
Dashboard /wp-admin3,029 ▲955.91 ▼0.25149.64 ▼0.78115.32 ▼3.54
Posts /wp-admin/edit.php2,805 ▲662.70 ▲0.0266.43 ▼5.9694.20 ▼2.72
Add New Post /wp-admin/post-new.php1,682 ▲10118.81 ▼1.55372.84 ▼28.86128.71 ▲11.59
Media Library /wp-admin/upload.php1,876 ▲695.02 ▲0.00157.35 ▼14.44122.59 ▼9.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 2 options in the database
    • wovax_crm_api_key
    • wovax_crm_email

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wovax-crm/ajax-functions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wovax-crm/admin/pages/settings.php:13

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 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Settings.), #2 (Frontend.)
Please take inspiration from this readme.txt

wovax-crm/wovax-crm.php 92% from 13 tests

The main file in "Wovax CRM" v. 0.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 187 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin262 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP51513170
JavaScript45051
CSS29141

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected