62% woo-1crm-extensions

Code Review | Woo 1CRM Extensions

WordPress plugin Woo 1CRM Extensions scored62%from 54 tests.

About plugin

  • Plugin page: woo-1crm-extensions
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Jun 1, 2017
  • Latest release: Jul 19, 2017
  • Number of updates: 3
  • Update frequency: every 18.0 days
  • Top authors: visual4 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /726 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.67MB] [CPU: ▼34.24ms] Passed 4 tests

Analyzing server-side resources used by Woo 1CRM Extensions
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.2041.64 ▲2.70
Dashboard /wp-admin3.27 ▼0.0323.94 ▼21.89
Posts /wp-admin/edit.php3.28 ▼0.0827.88 ▼33.90
Add New Post /wp-admin/post-new.php3.28 ▼2.6128.59 ▼71.34
Media Library /wp-admin/upload.php3.28 ▲0.0524.64 ▼9.83
Overview /wp-admin/admin.php?page=woo1crm-extensions3.2826.59
Additional Fields /wp-admin/admin.php?page=woo1crm-additional-fields3.2831.62

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Woo 1CRM Extensions
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲12113.15 ▼1.601.99 ▲0.0542.33 ▼0.59
Dashboard /wp-admin2,237 ▲525.89 ▲0.07105.81 ▼10.3942.05 ▲0.79
Posts /wp-admin/edit.php2,123 ▲312.03 ▼0.0043.65 ▼2.8034.98 ▲0.80
Add New Post /wp-admin/post-new.php1,554 ▲4023.01 ▲5.52651.97 ▼155.4754.78 ▼1.26
Media Library /wp-admin/upload.php1,419 ▲314.22 ▼0.01115.63 ▼9.3746.97 ▼6.68
Overview /wp-admin/admin.php?page=woo1crm-extensions8032.0427.8925.47
Additional Fields /wp-admin/admin.php?page=woo1crm-additional-fields8521.7132.0727.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/woo-1crm-extensions/admin/class-woo-1crm-extensions-admin.php+274
    Use of undefined constant text - assumed 'text' (this will throw an Error in a future version of PHP)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% 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
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=woo1crm-additional-fields
    • > Warning in wp-content/plugins/woo-1crm-extensions/admin/class-woo-1crm-extensions-admin.php+274
    Use of undefined constant text - assumed 'text' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=woo1crm-additional-fields
    • > Warning in wp-content/plugins/woo-1crm-extensions/admin/class-woo-1crm-extensions-admin.php+274
    Use of undefined constant textarea - assumed 'textarea' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=woo1crm-additional-fields
    • > Warning in wp-content/plugins/woo-1crm-extensions/admin/class-woo-1crm-extensions-admin.php+274
    Use of undefined constant select - assumed 'select' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=woo1crm-additional-fields
    • > Warning in wp-content/plugins/woo-1crm-extensions/admin/class-woo-1crm-extensions-admin.php+274
    Use of undefined constant checkbox - assumed 'checkbox' (this will throw an Error in a future version of PHP)

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/woo-1crm-extensions/admin/partials/woo-1crm-extensions-admin-display.php
    • > /wp-content/plugins/woo-1crm-extensions/public/partials/woo-1crm-extensions-public-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_API_Resource' not found in wp-content/plugins/woo-1crm-extensions/admin/class-woo-1crm-extensions-endpointhandler.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: There are too many tags (17 tag instead of maximum 10)
You can look at the official readme.txt

woo-1crm-extensions/woo-1crm-extensions.php 92% from 13 tests

The main file in "Woo 1CRM Extensions" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 171 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin970 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP18300660797
CSS228121
JavaScript2215452

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity5.08
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods65
▷ Static methods46.15%
▷ Public methods5686.15%
▷ Protected methods00.00%
▷ Private methods913.85%
Functions3
▷ Named functions3100.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
There are no PNG files in this plugin